Code:
<?php
class main extends Controller {
function index()
{
redirect('main/view/home','refresh');
}
function view($PageName)
{
if(strcasecmp('sitemap',$PageName) == 0 )
{
redirect('main/sitemap','refresh');
}
if(strcasecmp('ShopManagement',$PageName) == 0)
{
redirect('main/viewshop/main','refresh');
}
$username = $this->session->userdata('user');
if ($PageName == '')
{
$PageName = 'home';
}
$this->load->model('Links');
$AdminLinks = Links::GetUserLinksList();
$this->load->model('Links');
$AdminLinks = Links::GetLoggedInUserLinksList();
$data['link_list'] = $AdminLinks;
$data['ActivePage'] = $PageName;
$data['nav'] = $this->load->view('navdb', $data, true);
$this->load->view('header',$data);
$this->load->model('PagesData');
$data['PageData'] = PagesData::GetPageList_Alias($PageName);
$data['DataType'] = 'Row';
$data['SearchBar'] = "";
if(strcasecmp('home',$data['ActivePage']) == 0)
{
$data['SearchBar'] = $this->_LoadSearchBarData("");
}
$this->load->view('content',$data);
$this->load->view('footer');
}
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
DEBUG - 2009-01-16 09:44:51 --> Config Class Initialized
DEBUG - 2009-01-16 09:44:51 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:44:51 --> URI Class Initialized
ERROR - 2009-01-16 09:44:51 --> 404 Page Not Found --> main
DEBUG - 2009-01-16 09:45:06 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:06 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:06 --> URI Class Initialized
ERROR - 2009-01-16 09:45:06 --> 404 Page Not Found --> main
DEBUG - 2009-01-16 09:45:10 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:10 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:10 --> URI Class Initialized
ERROR - 2009-01-16 09:45:10 --> 404 Page Not Found --> main
DEBUG - 2009-01-16 09:45:14 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:14 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:14 --> URI Class Initialized
ERROR - 2009-01-16 09:45:14 --> 404 Page Not Found --> main
DEBUG - 2009-01-16 09:45:18 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:18 --> URI Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Router Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Output Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Input Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Global POST and COOKIE data sanitized
DEBUG - 2009-01-16 09:45:18 --> Language Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Loader Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Helper loaded: form_helper
DEBUG - 2009-01-16 09:45:18 --> Helper loaded: url_helper
DEBUG - 2009-01-16 09:45:18 --> Helper loaded: html_helper
DEBUG - 2009-01-16 09:45:18 --> Database Driver Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Session Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Helper loaded: string_helper
DEBUG - 2009-01-16 09:45:18 --> Session routines successfully run
DEBUG - 2009-01-16 09:45:18 --> Validation Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Controller Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:19 --> URI Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Router Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Output Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Input Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Global POST and COOKIE data sanitized
DEBUG - 2009-01-16 09:45:19 --> Language Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Loader Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Helper loaded: form_helper
DEBUG - 2009-01-16 09:45:19 --> Helper loaded: url_helper
DEBUG - 2009-01-16 09:45:19 --> Helper loaded: html_helper
DEBUG - 2009-01-16 09:45:19 --> Database Driver Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Session Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Helper loaded: string_helper
DEBUG - 2009-01-16 09:45:19 --> Session routines successfully run
DEBUG - 2009-01-16 09:45:19 --> Validation Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Controller Class Initialized
DEBUG - 2009-01-16 09:45:19 --> File loaded: /home/erfaan/public_html/projects/autoservicetime/system/application/views/nav.php
DEBUG - 2009-01-16 09:45:19 --> File loaded: /home/erfaan/public_html/projects/autoservicetime/system/application/views/header.php
DEBUG - 2009-01-16 09:45:19 --> File loaded: /home/erfaan/public_html/projects/autoservicetime/system/application/views/loginbar.php
DEBUG - 2009-01-16 09:45:19 --> File loaded: /home/erfaan/public_html/projects/autoservicetime/system/application/views/footer.php
DEBUG - 2009-01-16 09:45:19 --> Final output sent to browser
DEBUG - 2009-01-16 09:45:19 --> Total execution time: 0.1764
DEBUG - 2009-01-16 09:45:21 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:21 --> URI Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Router Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Output Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Input Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Global POST and COOKIE data sanitized
DEBUG - 2009-01-16 09:45:21 --> Language Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Loader Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Helper loaded: form_helper
DEBUG - 2009-01-16 09:45:21 --> Helper loaded: url_helper
DEBUG - 2009-01-16 09:45:21 --> Helper loaded: html_helper
DEBUG - 2009-01-16 09:45:21 --> Database Driver Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Session Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Helper loaded: string_helper
DEBUG - 2009-01-16 09:45:21 --> Session routines successfully run
DEBUG - 2009-01-16 09:45:21 --> Validation Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Controller Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Language file loaded: language/english/form_validation_lang.php