开发者

Codeigniter user friendly url's

开发者 https://www.devze.com 2023-01-15 18:08 出处:网络
Hello there I\'m trying to make my url\'s as user friendly as possible...so far I have managed to remove index.php (with .htaccess) and I have set $route[\'default_controller\'] = \"myController\"; so

Hello there I'm trying to make my url's as user friendly as possible...so far I have managed to remove index.php (with .htaccess) and I have set $route['default_controller'] = "myController"; so my home page's url is pretty decent as it appears like localhost/myController but all the other url's have the structure localhost/myRoot/myController/function is there a way to make my url's more user friendly?

EDIT: I would like my structure to be like: localhost/myController/myFunction

my file structure is like that:

xampp 
     htdocs
        myRoot
           application
   开发者_运维百科          controllers
                myController.php


You can set up your routes to be whatever you like http://codeigniter.com/user_guide/general/routing.html

0

精彩评论

暂无评论...
验证码 换一张
取 消