Hi,
I have some code in my Zend index.php that I would like to move to my Bootstrap.php
public/index.php
application/Bootstrap.php
For example, these two lines:
Code:
$ini_constants = new Zend_Config_Ini(APPLICATION_PATH."/configs/constants.ini",
APPLICATION_ENV);
Zend_Registry::set('ini_constants', $ini_constants);
This is what Bootstrap.php looks like now:
Code:
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
public function WHAT_SHOULD_I_CALL_THIS_FUNCTION()
{
// Should I put my code here?
}
}
My questions ....
1. What should I use instead of: WHAT_SHOULD_I_CALL_THIS_FUNCTION:
2. Is inside that function the correct place to put my code from index.php?
3. How do I get that function to run? I have the below at the bottom of my index.php
$application->bootstrap()->run();
I am using Zend version 1.11.11
Thank you.