Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter - Doctrine ORM Tutorial : A way of enhancing CI
#1

[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 ?
#2

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

Writing the 3rd episode right now.
#3

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

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

[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
#6

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

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

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

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB