Welcome Guest, Not a member yet? Register   Sign In
Doctrine and CI classname collitions


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) Sad

Theme © iAndrew 2016 - Forum software by © MyBB