|
|||
|
Hello,
Im sure this is a popular question so I appologise in advance. I can resolve it by creating my own class and then calling that statically in each action and this seems to work OK but I was wondering is there a way to incororate it within the framework. This is the function I want to run. PHP Code:
Many thanks in advance. Madmaxious Last edited by madmaxious : 04-18-2008 at 10:09 AM. Reason: Canged CODE to PHP |
|
||||
|
You can create a new base controller class by extending Zend_Controller_Action. Put the new class file in your library under a folder named after your app.
MyApp/Controller/Action.php PHP Code:
PHP Code:
__________________
Zend Framework Resources: Zend Webinars | Reference Manual | API Docs | Books | FreeNode: #zftalk Getting Started Tutorials: Getting started with ZF | Getting started with Zend Auth |
![]() |
| Thread Tools | |
| Display Modes | |
|
|