I'm new to zend framework and I want to ask if is it possible to have a base controller that will be extended by all other controllers? I want to have a base class wherein I'll put all common methods and properties for all controllers I'll have on my project. Is it advisable to do this with zend or is there a better approach to this?
相关问题
- Zend Auth locked session
- Zend/PHP: Problem uploading/downloading file to/fr
- PHP Zend Framework - Zend_Config and global state
- 'Zend_Db_Statement_Exception' with message
- How to handle with foreign languages?
相关文章
- Possible disadvantages of Zend [closed]
- Zend Framework Modules with common resources
- Zend Form Validator Callback: How to exclude a use
- Exception while setting up the wurfl in zend
- How to create admin in Zend framework?
- zend framework and jquery - attach event from serv
- Magento: Programatically update cart via event
- move_uploaded_file() with Zend doens't
You could just make a base class which extends Zend_Controller_Action. Then use that as the base class for all of your controllers.
Although, depending on what you want to do, it might be more appropriate to make Action helpers for the kind of functionality you want in every controller.