eddiejaoude / Zend-Framework--Doctrine-ORM--PHPUnit--Ant--Jenkins-CI--TDD-

[DEPRECATED for ZF2 & Composer] Best practice Zend Framework (ZF) skeleton / base with Doctrine2 integration : High code coverage & build scripts using TDD. Issues section ar e used for project planning (features etc)
http://www.jaoudestudios.com
159 stars 40 forks source link

View setup from bootstrap to front controller #61

Closed eddiejaoude closed 13 years ago

eddiejaoude commented 13 years ago

After reading through more articles, apparently it is better to do view setup (i.e. doctype) in the front controller rather than the bootstrap

papayasoft commented 13 years ago

Funny, you should broach this subject. Just yesterday, I retweeted the article from Aaron Saray:

http://aaronsaray.com/blog/2011/05/24/zend-framework-bootstrap-vs-front-controller-plugin/

I wasn't really thinking about it, just mostly pleased that I understood it. ;-)

But I got a response back from Jurian Sluiman:

http://twitter.com/#!/juriansluiman/statuses/73276873609719808

Follow the thread of replies on @juriansluiman's Twitter page

Upshot: I think Jurian is right. Best to leave it as bootstrap. If we call bits of the app in other interfaces, then we can selectively bootstrap only the resources that are needed.

Whaddya think?

eddiejaoude commented 13 years ago

Thats where I got the idea from ;)

But Jurian has a good point.