php - CodeIgniter core changes -


ci looks segment[1] controller (in controller dir) , segment[2] method. now, have specific requirement business application needs not want ci or force go controller dir load have "domainurl/module_identifier_id/controller/method/".

here, every request coming along associated module's identifier id have complete module's configuration , other data (controller files, module location uploaded, menus , urls have same url mechanism want design developers develop modules , upload) stored in db.

we need id , play fetch relevent records , point ci load controller want , indeed rest methods etc every thing needs working is.

i hope understand looking have our own main controller type file of requests coming customizing protocol described above , developers following means, there must module identifier first , controller, method etc...

let me know if have query cleared on?

i think use routes this:

$route[(:any)/(:any)/(:any)]  = '$2/$3/$1'; 

this should rearrange segments way want, without changing way native routing system works.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -