Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Install Issue I Cannot solve
#3

[eluser]bknox360edu[/eluser]
Code:
public function index($linkname = 'home')
{
            
            $this->data->content = $this->website->get_page($this->websiteid,$linkname);
            
            $this->load->template('content', $this->data);
            
}

$this->load->template('content',$this->data); is line 51

Is there anything else I might need to post?

it's just a controller function and the MY_Loader class looks like this:

Code:
<?php

/**
* /application/core/MY_Loader.php
*
*/
class MY_Loader extends CI_Loader {
    public function template($template_name, $vars = array(), $return = FALSE)
    {
        $navigation = $this->view('templates/navigation',$vars,TRUE);
        
        if(is_array($vars)){
            $vars['navigation'] = $navigation;
        }else{
            $vars->navigation = $navigation;
        }
        
        $content  = $this->view('templates/header', $vars, $return);
        $content .= $this->view($template_name, $vars, $return);
        $content .= $this->view('templates/footer', $vars, $return);

        if ($return)
        {
            return $content;
        }
    }
}


Messages In This Thread
CodeIgniter Install Issue I Cannot solve - by El Forum - 03-18-2013, 10:31 AM
CodeIgniter Install Issue I Cannot solve - by El Forum - 03-18-2013, 10:50 AM
CodeIgniter Install Issue I Cannot solve - by El Forum - 03-18-2013, 10:59 AM
CodeIgniter Install Issue I Cannot solve - by El Forum - 03-18-2013, 12:57 PM
CodeIgniter Install Issue I Cannot solve - by El Forum - 03-18-2013, 01:14 PM
CodeIgniter Install Issue I Cannot solve - by El Forum - 03-18-2013, 05:52 PM
CodeIgniter Install Issue I Cannot solve - by El Forum - 07-02-2014, 03:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB