Welcome Guest, Not a member yet? Register   Sign In
404 Page Not Found
#5

[eluser]danish[/eluser]
here is the main controller, the file was very big. This forum was not allowing me to attach the file so I am pasting the main functions here.


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');
    }


Messages In This Thread
404 Page Not Found - by El Forum - 01-16-2009, 08:06 AM
404 Page Not Found - by El Forum - 01-16-2009, 08:21 AM
404 Page Not Found - by El Forum - 01-16-2009, 08:22 AM
404 Page Not Found - by El Forum - 01-16-2009, 08:24 AM
404 Page Not Found - by El Forum - 01-16-2009, 08:30 AM
404 Page Not Found - by El Forum - 01-16-2009, 08:35 AM
404 Page Not Found - by El Forum - 01-16-2009, 08:37 AM
404 Page Not Found - by El Forum - 01-16-2009, 08:38 AM
404 Page Not Found - by El Forum - 01-16-2009, 08:46 AM
404 Page Not Found - by El Forum - 01-16-2009, 04:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB