|
|||
|
in my application i use this directory structure - 3. Application Topography and Configuration - Zend Framework Development - Zend Framework Wiki
In Controller's init() method i call $this->initView(); and then in IndexController - $this->render(). This script calls <module>/views/scripts/<controller>/<action>.phtml file for view generation. How can i insert new Helper classes in current Controller which i suppose should be under <module>/views/helpers/<controller>/ |
|
||||
|
Hi,
Welcome to the forums. Perhaps you should check out the manual it is full of helpful examples. There is an example under section 34.4.3. Writing Custom Helpers Zend FrameworkBasically you can create the helper and add the path to your helpers with addHelperPath() ex. <module>/views/helpers/<controller>/MyHelper.php $this->myHelper();
__________________
SpotSec Network Gateway Project on SourceForge SpotSec Network Gateway Project Home SpotSec Blog: http://spotsec.com/blog |
![]() |
| Thread Tools | |
| Display Modes | |
|
|