Welcome Guest, Not a member yet? Register   Sign In
Controller Suffix
#3

I do suffix my models with _model, libraries with _library and views with _view which helps with my editor that sometimes gets confused if I have multiple file names with the same name. I would never suffix a controller though, since this is a url issue (unless overridden with routes of course).

CI does not remove anything from the controller name, so if you class is Foo_controller, then that is the only name that will work, calling Foo will not be recognized.

So somewhere, if 'welcome' in your url is still working, CI must either be finding a controller for it or finding a route for it.

Hope that helps,

Paul.
Reply


Messages In This Thread
Controller Suffix - by ufhy - 08-05-2016, 08:56 AM
RE: Controller Suffix - by Avenirer - 08-07-2016, 10:31 PM
RE: Controller Suffix - by PaulD - 08-08-2016, 09:09 AM
RE: Controller Suffix - by ivantcholakov - 08-08-2016, 10:41 AM
RE: Controller Suffix - by Muzikant - 08-08-2016, 11:59 AM
RE: Controller Suffix - by PaulD - 08-08-2016, 01:56 PM
RE: Controller Suffix - by albertleao - 08-12-2016, 05:29 PM
RE: Controller Suffix - by marksman - 08-08-2016, 06:13 PM
RE: Controller Suffix - by PaulD - 08-12-2016, 05:57 PM
RE: Controller Suffix - by albertleao - 08-14-2016, 10:21 PM
RE: Controller Suffix - by PaulD - 08-15-2016, 03:00 AM
RE: Controller Suffix - by albertleao - 08-15-2016, 09:52 AM
RE: Controller Suffix - by spjonez - 08-15-2016, 07:41 AM
RE: Controller Suffix - by Ivo Miranda - 08-15-2016, 12:14 PM
RE: Controller Suffix - by albertleao - 08-15-2016, 02:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB