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

(This post was last modified: 08-15-2016, 07:46 AM by spjonez.)

ivantcholakov Wrote:Time ago I have taken a solution from here: http://code.tutsplus.com/tutorials/6-cod...--net-8308
But this must be adapted carefully for CodeIgniter 3.

This method works well we've been using it for a while. My addon Cinder uses it as well. Instead of manually defining all routes you overload the router methods and append '_controller' to the path it uses to load a controller.

I haven't updated this repo in a long time but here's an example: https://github.com/monsterlane/codeignit...Router.php

You should be able to start with that and update it by comparing your version of CI's system/core/Router.php with the methods defined in that file for any changes other than the suffix stuff.
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