Codeigniter controller issue

Home Forums General Discussion Codeigniter controller issue

This topic contains 0 replies, has 1 voice, and was last updated by  sarojkumar 2 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2494

    sarojkumar
    Participant

    hello
    now i am binnger in codeinginter. my controller name is buy and i have set buy as default controller.
    now my router.php is like this———-
    $route['default_controller'] = “buy”;
    $route['(:any)'] = “buy/$1″;
    $route['404_override'] = ”;

    now this is my site url on localhost is http://localhost/projectname/function_name is working fine. but when i want to create a new controller suppose dashboard. i want to after login in my site user will enter to new page under dashbord controller .
    so the url sholud be look like http://localhost/projectname/dashboard/function_name/
    please help me

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.