I am just wondering what is the real purpose of bootstrap in Zend Framework. What are the methods goes into Bootstrap class. Any tutorial links could be helpful... Please forgive me if the question is so vague. I am trying to learn Zend but the tutorials and books are skipping steps and they are not so clear in the framework website. All I can learn from the quick start is that it helps to start the session. Am I right thinking that the bootstrap runs first before any controller loads? Can I right any method on bootstrap which I need to load on the beginning? How do I access those bootstrap methods in controller?
Thank you, Karthik
In computing, bootstrapping (from an old expression "to pull oneself up by one's bootstraps") is a technique by which a simple computer program activates a more complicated system of programs. In the start up process of a computer system, a small program (such as BIOS) initializes and tests that a basic requirement of hardware, peripherals and external memory devices are connected. It then loads a program from one of them and passes control to it, thus allowing the loading of larger programs (such as an operating system).
In Zend Framework, bootstrapping is the process that loads your application. This includes, but is not limited to the Session. Any resources needed by your application to process the request (the dispatch) to the application is bootstrapped/loaded/initialized before the request is fulfilled, e.g. before the controller delegates any input to the model and creates a response that is send back to the client.
Additional information: http://framework.zend.com/manual/en/zend.application.theory-of-operation.html
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki