New bootstrap?

For programming and general questions on Zend Framework

New bootstrap?

Postby chrisny on Tue Jun 09, 2009 12:05 am

Hi;

I'm learning Zend by curling up with my laptop and "Practical Web 2.0 Applications with PHP", which I understand is actually a pretty good intro to Zend.

It's based on ZF 1.02, however, and I suppose times have changed. The author, Quentin Zervaas, has us start out by writing an index.php which initializes some stuff, creates a controller, and does some dispatching.

Now, however, when I build my framework app framework with the new ZF.sh/bat, I get a public/index.php that does very little, except it does create a Zend Application, then call the bootstrap method on it.

I guess I'm confused about the relationship between the old way & new way. Does the new bootstrap just handle most of that stuff that was handled in the index.php file before? Would the style/approach of the rest of the application be pretty similar to what it was in ZF 1.02, or has the entire structure/theory changed so much?

Kind of vague, I know, but I'm trying to wrap my head around it, and figure out if it's worth going through the rest of this book, or just stick to the ZF "Quick Start"?

Thanks for any feedback,

Chris
chrisny
 
Posts: 11
Joined: Mon Jun 08, 2009 3:16 pm

Re: New bootstrap?

Postby brunitto on Tue Jun 09, 2009 1:08 pm

Answering many 'accusations' of not cover application issues, Zend team created Zend_Application package.

In Zend 1.8+, the Zend_Application_* package handles a lot of application scope issues, like bootstraping and autoloading. Prior to 1.8, the bootstrap was set in the index.php file - although some developers uses a bootstrap class.

I suggest you to read the Zend_Application chapter in reference guide and without doubts, the new approach is a better - and faster - one.

If the reference guide looks exoteric for you, I can help you in your doubts.
Ookie dookie!
brunitto
 
Posts: 111
Joined: Fri May 29, 2009 10:10 pm
Location: São Paulo - Brazil


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 7 guests