Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of bootstrap in zend?

Tags:

I am wondering what is the real purpose of bootstrap in Zend Framework.

What are the methods that go into the 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 in thinking that the bootstrap runs first before any controller loads? Can I write any methods in bootstrap which I need to load from the beginning? How do I access those bootstrap methods in controller?

like image 367
Karthik Avatar asked Apr 26 '11 10:04

Karthik


People also ask

What is Zend framework used for?

Zend Framework is a collection of professional PHP packages with more than 570 million installations. It can be used to develop web applications and services using PHP 5.6+, and provides 100% object-oriented code using a broad spectrum of language features.

Is Zend Framework an MVC?

Zend\Mvc is a brand new MVC implementation designed from the ground up for Zend Framework 2, focusing on performance and flexibility. The MVC layer is built on top of the following components: Zend\ServiceManager - Zend Framework provides a set of default service definitions set up at Zend\Mvc\Service.

Is Zend Framework Good?

Conclusion. The Zend framework is the perfect choice for developers needing an ideal platform for enterprise application developments. It lets them make the best of PHP5 and PHP7. Developers can enjoy a simplified development process as it facilitates faster development and better results.


1 Answers

From Wikipedia:

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/1.12/en/zend.application.theory-of-operation.html

like image 141
Gordon Avatar answered Dec 31 '22 03:12

Gordon