I am using Zend Framework v 1.10
I have created a custom function in the bootstrap file:
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
public function init(){ }
public function helloworld(){ echo 'hello';}
}
?>
How do I call the helloworld() function from an Action within the Index Controller?
Any help will be appreciated.
Thanks
Anyone can call a function in the bootstrap class without making any object of the class. Bootstrap automatically calls custom functions which have the
_initkeyword as a prefix. Such as: