1. autoload.php, application\config\autoload.php
$autoload['libraries'] = array('database');
$autoload['helper'] = array('url');
2. config.php, application\config\config.php
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$config['base_url'] .= "://" . $_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
$config['base_url'] .= "://" . $_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']);
3. database.php, application\config\database.php
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'dbbelajarcrud',
'username' => 'root',
'password' => '',
'database' => 'dbbelajarcrud',
4. routes.php, application\config\routes.php
$route['default_controller'] = 'Admin';
Tidak ada komentar:
Posting Komentar