How do I get the project basepath in CodeIgniter

前端 未结 6 731
失恋的感觉
失恋的感觉 2020-12-15 03:22

I have created a folder as user in the root directory.

My project base path is:

/var/www/myproject/

When I want to access the base

6条回答
  •  渐次进展
    2020-12-15 03:46

    Change your default controller which is in config file.

    i.e : config/routes.php

    $route['default_controller'] = "Your controller name";
    

    Hope this will help.

提交回复
热议问题