Doctrine and CI classname collitions - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Doctrine and CI classname collitions (/showthread.php?tid=12083) |
Doctrine and CI classname collitions - El Forum - 10-05-2008 [eluser]Unknown[/eluser] Hi! I have followed the "how to add Doctrine to CI" "guide" on the Doctrine site, which is nothing really special, but I think I have a problem: Doctrine generated models are named without postfixes or prefixes (so I will have a User.php User class, not UserModel or User_model etc.) just like CI Controllers. So the question is, is it possible to painlessly postfix Controller names? (No, renaming Doctrine generated classes did not cut) Like class User_controller extends Controller... ? Or any other general solution? I don't really want to modify CI core and/or create custom routes whenever I have a collision (though I might end up with that) |