Apply for Zend Framework Certification Training

Zend Framework 1




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');
                                    

< How to pass value from Controller to View in Zend framework 1 How to Redirect on another action in Zend Framework 1 >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top