Hi,
Try catching it with Zend_Session or Zend_Cache.
Hi All,
I'm new to the Zend Framework and I will be using it as the inifrastructure for a CMS I intend to build for my company. I have a query regarding the bootstrap?
As it can be used to setup the application environment, e.g. ACL, datbase, config etc, and because all requests are routed through it, is this not overkill in that you are again resetting all the environment settings on every request.
Is there a method of setting up the environment only once to save processing?
Thanks
Adrian Campbell
The Design Zoo
The Design Zoo - Creative Digital Agency, Belfast, Northern Ireland, Web Design
Hi,
Try catching it with Zend_Session or Zend_Cache.
If I use Zend_cache, what would be the best option. I have created a class called ZFApplication which contains the methods and properties for setting up the environment, e.g. initialisation, setting up routes, setting up ACL.
This is then called in index.php.
Would it be best to cache the function calls in the ZFApplication class or cache the objects created e.g. ACL, config?
Sometimes it is better not to cache some objects, e.g. config. If your config is pretty short it can take more time to unserialize config object with Zend_Cache::load than parse config file once again. You should check the performace of both methods in your application.