Welcome Guest, Not a member yet? Register   Sign In
url routing .. any idea?
#1

[eluser]a7med.she7ata[/eluser]
hi all
i am working in a project
my members profile url now is
http://example.com/members/ci_user

and i want the url to be
http://example.com/ci_user

any ideas??
#2

[eluser]WanWizard[/eluser]
Any other controllers in use except 'members'?
#3

[eluser]a7med.she7ata[/eluser]
just members controller
function login
function view profile
function edit profile
function connect with twitter (still working on it)
#4

[eluser]WanWizard[/eluser]
If you don't want to use controller and method name in the URL, how are you going to access the other methods?
#5

[eluser]a7med.she7ata[/eluser]
okay
i will make only one method to login and other methods i will seprate it

so how can i make the url like this
http://example.com/ci_user
#6

[eluser]Myles Wakeham[/eluser]
Sounds like a simple case of a set of route entries in routes.php in your config folder to me. Just route the preferred incoming requests there, and change your HTML/links to reference the desired URLs, and it should just work.

Myles
#7

[eluser]a7med.she7ata[/eluser]
can you give me an example?
i'm sorry for disturbing
#8

[eluser]Myles Wakeham[/eluser]
[quote author="a7med.she7ata" date="1276982476"]can you give me an example?
i'm sorry for disturbing[/quote]

Manual
#9

[eluser]Unknown[/eluser]
you go to application folder then config folder and you set the default_controller in routes file as memeber controller




Theme © iAndrew 2016 - Forum software by © MyBB