Welcome Guest, Not a member yet? Register   Sign In
Can I call Doctrine models from within a CI controller?
#1

[eluser]developer10[/eluser]
A tutorial that i have been following kept the doctrine queries in CI controllers (doctrine is used as a CI plugin).

Now i wonder if i can put queries (written in DQL, of course) in corresponding model classes and have them called from within a controller, similar to how you would normally do with CI models

Code:
$this->model_name->some_function();

to get the desired results?


Messages In This Thread
Can I call Doctrine models from within a CI controller? - by El Forum - 10-24-2010, 04:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB