How to bootstrap a resource
bootstrap(<resource_name>)
tells to Zend_Bootstrap to init the specified resource before continue. Usually is used for init required dependencies before init the actual resource
The resource bootstrap can be declared in two ways.
A PHP method in the Bootstrap
class.
function _init<Resource_name>() { ... }
Or in the ini
file
resources.<resource_name>
in the last case (ini
file) a class extending from Zend_Application_Resource_ResourceAbstract
must be declared with the code for init the resource.
Session resource bootstrap
For the concrete case of bootstrap('session')
by default use the init()
method declared in Zend_Application_Resource_Session