Results 1 to 4 of 4

Thread: Bootstrap Question?

  1. #1
    theDesignZoo is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Question Bootstrap Question?

    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

  2. #2
    Jose E. Rodriguez Huerta is offline Junior Member
    Join Date
    Aug 2007
    Posts
    1

    Default

    Hi,

    Try catching it with Zend_Session or Zend_Cache.

  3. #3
    theDesignZoo is offline Junior Member
    Join Date
    Aug 2007
    Posts
    4

    Default

    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?

  4. #4
    borec is offline Member
    Join Date
    Aug 2007
    Location
    Tarnow/Krakow, Poland, EU
    Posts
    30

    Default

    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.

Similar Threads

  1. Zend_Session bootstrap
    By fernandomm in forum Authentication & Authorization
    Replies: 1
    Last Post: 11-20-2009, 08:43 PM
  2. Getting module name in bootstrap
    By Juul in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 09-15-2008, 04:40 PM
  3. setEncoding in the bootstrap
    By inside in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 04-27-2008, 01:17 AM
  4. many layouts_paths set in bootstrap
    By Michał in forum Model-View-Controller (MVC)
    Replies: 1
    Last Post: 04-24-2008, 07:44 PM
  5. Bootstrap in IIS
    By spectravp in forum Model-View-Controller (MVC)
    Replies: 0
    Last Post: 03-15-2008, 04:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •