Hi All,
I have decided to use Modular extension in my CI project.
I have downloaded the ME libraries and stored them in ./system/application/libraries.
Now I have
- Controller.php
- Modules.php
- MY_Router.php
in application/libraries.
My Config file has….
/* Detect ssl connectivity */
if ( isset($_SERVER['HTTPS']) )
$ssl = $_SERVER['HTTPS'];
elseif ( isset($_SERVER['HTTP_FRONT_END_HTTPS']) )
$ssl = $_SERVER['HTTP_FRONT_END_HTTPS'];
else
$ssl = "OFF";
$root = (stripos($ssl, "ON") !== FALSE) ? "https" : "http";
/* Many pages/apps served through the same domain */
if ( isset($_SERVER['HTTP_X_FORWARDED_HOST']) ) {
list($host) = explode(',', str_replace(' ', '', $_SERVER['HTTP_X_FORWARDED_HOST']));
} else {
$host = $_SERVER['HTTP_HOST'];
}
$root .= "://".$host;
if ( ! isset($_SERVER['ORIG_SCRIPT_NAME']) )
{
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
}
else
{
$root .= str_replace(basename($_SERVER['ORIG_SCRIPT_NAME']),"",$_SERVER['ORIG_SCRIPT_NAME']);
}
$config['base_url'] = "$root";
Then I created Sub Modules under Application. Now my directory looks like…
./system/application
/staffprofilemanagement
/admin
/controllers
/crEntityCntrlr.php
/views
/models
/libraries
/config
Then I try to access using the url….
http://localhost/staffprofilemanagement/admin/index.php/crEntityCntrlr/loadCollege
I’m getting the error 404 File not found.
Please anybody solve this issue.
