Welcome Guest, Not a member yet? Register   Sign In
language/class/function/id
#1

[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
#2

[eluser]planetfrank[/eluser]
nobody knows?
hey I even uploaded an Avatar Smile
#3

[eluser]InsiteFX[/eluser]
You can look at the CI _remap

InsiteFX
#4

[eluser]planetfrank[/eluser]
thx!! ...lets see what i can find
#5

[eluser]InsiteFX[/eluser]
CodeIgniter User Guide - Controllers - Remapping Function Calls

InsiteFX
#6

[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
#7

[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.
}

}
#8

[eluser]InsiteFX[/eluser]
You can look at this thread!

InsiteFX
#9

[eluser]planetfrank[/eluser]
looks a lot better Smile

pd: your link has a mailto: at the begining
#10

[eluser]InsiteFX[/eluser]
link fixed, that happens some times.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB