url routing .. any idea? |
[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??
[eluser]a7med.she7ata[/eluser]
just members controller function login function view profile function edit profile function connect with twitter (still working on it)
[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?
[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
[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
[eluser]a7med.she7ata[/eluser]
can you give me an example? i'm sorry for disturbing
[eluser]Unknown[/eluser]
you go to application folder then config folder and you set the default_controller in routes file as memeber controller |
Welcome Guest, Not a member yet? Register Sign In |