CodeIgniter Forums
Can I call Doctrine models from within a CI controller? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Can I call Doctrine models from within a CI controller? (/thread-35270.html)



Can I call Doctrine models from within a CI controller? - El Forum - 10-24-2010

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