bootstrapping - Zend Framework: How to call a custom function created in bootstrap? -
i using zend framework v 1.10
i have created custom function in bootstrap file:
<?php class bootstrap extends zend_application_bootstrap_bootstrap { public function init(){ } public function helloworld(){ echo 'hello';} } ?>
how call helloworld() function action within index controller?
any appreciated.
thanks
anyone can call function in bootstrap class without making object of class. bootstrap automatically calls custom functions have _init
keyword prefix. such as:
public function _initindia() { echo 'proud indian'; }
Comments
Post a Comment