CodeIgniter Forums
CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI (/showthread.php?tid=24141)

Pages: 1 2 3


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-01-2009

[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/codeigniter-doctrine-from-scratch-day-1-install-and-setup

It can give ideas ? Nope ?


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-01-2009

[eluser]Burak Guzel[/eluser]
Thanks for linking to my article Smile

Writing the 3rd episode right now.


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-06-2009

[eluser]iFadey[/eluser]
Hmm.. seems interesting :-)


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-06-2009

[eluser]saidai jagan[/eluser]
Good. Thanks.


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-06-2009

[eluser]Burak Guzel[/eluser]
For those interested, 3 more articles have been posted:

Day 2 - The Basics
http://www.phpandstuff.com/articles/codeigniter-and-doctrine-from-scratch-day-2-the-basics

Day 3 - Signup Form
http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-3-user-signup-form

Day 4 - User Login
http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-4-user-login


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-16-2009

[eluser]GSV Sleeper Service[/eluser]
a good series, thanks lane4.


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-16-2009

[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!


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-16-2009

[eluser]keiichi[/eluser]
Great! Thanks!! Smile


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-16-2009

[eluser]Burak Guzel[/eluser]
Thanks everyone.

Day 5 and Day 6 have been posted, and more of them are coming very soon.


CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI - El Forum - 11-16-2009

[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.