我有一个基于CodeIgniter框架的整个网站项目.我的问题是我不知道如何在我的本地Mamp服务器上运行这个项目.我已成功设置Mamp并运行最新版本的CodeIgniter.
但是现在如何使用我的localhost文件夹中的CodeIgniter运行整个项目.这是我第一次使用CMS框架.
解决方法:
打开application / config文件夹
First go to config.php file and point the base url to the correct location
$config[‘base_url’] = ”;
than goes to the database.php and provide correct database parameters
$db[‘default’][‘hostname’] = ‘localhost’;
$db[‘default’][‘username’] = ‘user’;
$db[‘default’][‘password’] = ‘password’;
$db[‘default’][‘database’] = ‘dbname’;thats the most basic changes u have to do….
now if you want to redirect it to specific controller by default go to routes.php file in config directory and change this vairable
$route[‘default_controller’] = “yourcontrollername”