Welcome Guest, Not a member yet? Register   Sign In
want to create a url like http://www.example.com/uername
#13

[eluser]weblyan[/eluser]
routes.php is a settings file and should not contain any code other than assigning variabels.
Besides, if you write code like that then you are not using the framework correctly.
http://ellislab.com/codeigniter/user-gui...sults.html

Anyway, for the routing, I haven't really tried it but there is a way to set a default controller in the index.php

Code:
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*

Then you can probably use $this->uri->segment(1); the get the username.


Messages In This Thread
want to create a url like http://www.example.com/uername - by El Forum - 06-29-2012, 04:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB