I use codeigniter. And I am trying to set up a redirection true or false in MY_Controller.php
Once the install process is complete it should let me let me have access to the front end and back end.
But now when I go to the admin url it sends me back to install url even though it is installed how do I fix my problem. I want to have access to admin and front end after installed.
All Controllers extend MY Controller.
<?php
class MY_Controller extends MX_Controller {
function __construct() {
parent::__construct();
if($this->config->item('installed') !== FALSE) {
redirect('install');
} else {
return TRUE;
}
}
}
Config.php
/*
|--------------------------------------------------------------------------
| Install Wizard Setup
|--------------------------------------------------------------------------
|
| This checks if you have set gone through install process
| else get redirected. This corresponds with MY_Controller.php
| All Controllers Extend Class Now Renamed MY_Controller from
| MX_Controller
| FALSE REDIRECTS TO INSTALL, TRUE HAS ACCESS TO MAIN SITE
|
*/
$config['installed'] = TRUE;