• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doctrine and CI classname collitions

#1
[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) Sad


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.