CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI |
[eluser]@Frédéric Quié - bleekom.org[/eluser]
A brand new tutorial about how to use Doctrine as a CI's plugin : http://www.phpandstuff.com/articles/code...-and-setup It can give ideas ? Nope ?
[eluser]Burak Guzel[/eluser]
Thanks for linking to my article Writing the 3rd episode right now.
[eluser]Burak Guzel[/eluser]
For those interested, 3 more articles have been posted: Day 2 - The Basics http://www.phpandstuff.com/articles/code...the-basics Day 3 - Signup Form http://www.phpandstuff.com/articles/code...ignup-form Day 4 - User Login http://www.phpandstuff.com/articles/code...user-login
[eluser]überfuzz[/eluser]
@lane - I like the clean code you get in the controller by putting the form_validation in a function(_submit_validate()). I'm going to nick that idea. Great stuff!
[eluser]Burak Guzel[/eluser]
Thanks everyone. Day 5 and Day 6 have been posted, and more of them are coming very soon.
[eluser]wiredesignz[/eluser]
You've done a huge amount of work here and I'm sure it's greatly appreciated by the community. From my experience using MVC I've concluded that it's not such a good idea to use any data objects in the controller directly. Doing this then requires all of your application business logic to be in the controller also when it should really be in your models. The model should encapsulate the Doctrine objects rather than being replaced by them. Even your diagram (in Part 1) shows business logic being in models but your code examples don't. Maybe at some point you could give examples of how a model might encapsulate the Doctrine data objects. Thanks. |
Welcome Guest, Not a member yet? Register Sign In |