APPLY FOR ONLINE Zend Framework Certification

                    
                        In Zend Framework 1 B y default  we have one module 
And the structure is like this

/application
	- /controllers
		- /IndexController.php
	- /models
		- /Model.php
	- /views
		- /scripts
			- /index/index.phtml
/library
	- /Zend
/public_html
	- /images
	- /scripts

Now if we want to add more modules in app
Then the structure will be like this
step 1 
/application
	- /modules
		+ /movie
			- /controllers
				- /IndexController.php
			- /views
				- /scripts
					- /index/index.phtml
		+ /default
			- /controllers
				- /IndexController.php
			- /views
				- /scripts
					- /index/index.phtml
	- /models
/library
	- /Zend
/public_html
	- /images
	- /scripts

Step 2  Need to  add line  in bootstrap file

$frontController->addModuleDirectory(APPLICATION_PATH . '/modules');
                    
                


Comment


Back to Top