language/class/function/id - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: language/class/function/id (/showthread.php?tid=40098) |
language/class/function/id - El Forum - 03-30-2011 [eluser]planetfrank[/eluser] Hi there, I am building a big website and It needs to be on several languages so I need to change the order of the variables on the url I know I have to use routes.php but how? I already searched in this forum and google it and most of the cases are people redirecting stuff I would like to gell CI this: 1st variable = Variable (language) 2nd variable = Class 3rd variable = function 4th variable = id I hope that it is true that the CI community is very supportive language/class/function/id - El Forum - 03-30-2011 [eluser]planetfrank[/eluser] nobody knows? hey I even uploaded an Avatar language/class/function/id - El Forum - 03-30-2011 [eluser]InsiteFX[/eluser] You can look at the CI _remap InsiteFX language/class/function/id - El Forum - 03-30-2011 [eluser]planetfrank[/eluser] thx!! ...lets see what i can find language/class/function/id - El Forum - 03-30-2011 [eluser]InsiteFX[/eluser] CodeIgniter User Guide - Controllers - Remapping Function Calls InsiteFX language/class/function/id - El Forum - 03-30-2011 [eluser]planetfrank[/eluser] Yes, I went directly there. But it is still a poor solution IMHO Why? because I dont want to change an specific Class remap it I want to change the entire CI installation I would like to say, form the very begining first segment=language second segmente=class third=function and so on I thought it was possible language/class/function/id - El Forum - 03-30-2011 [eluser]planetfrank[/eluser] and this doesnt help much as a sample class View extends Controller { function _remap ( $cat , $topic , $title ) { // Grab and display the article. } } language/class/function/id - El Forum - 03-30-2011 [eluser]InsiteFX[/eluser] You can look at this thread! InsiteFX language/class/function/id - El Forum - 03-30-2011 [eluser]planetfrank[/eluser] looks a lot better pd: your link has a mailto: at the begining language/class/function/id - El Forum - 03-30-2011 [eluser]InsiteFX[/eluser] link fixed, that happens some times. InsiteFX |