Welcome Guest, Not a member yet? Register   Sign In
Make a dynamic uri segment

How can i make my application URL like this "mysite/username/home" where the username is dynamically changed according to the user that register in my site, and also each user has their own home...
-thanks for answer-


you can do it if you change the URL like this : http://mysite/home/username

PHP Code:
class Home extends CI_Controller {

  public function index($username)
       // Check username
      // Load view
      // ...


SEE: Also _remap method
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB