I have codeigniter project on a live server and i failed to load view using template, this is the code:
$this->template->load('Template', 'view_admin');
and this is the library:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Template {
var $template_data = array();
function set($name, $value)
{
$this->template_data[$name] = $value;
}
function load($template = '', $view = '' , $view_data = array(), $return = FALSE)
{
$this->CI =& get_instance();
$this->set('contents', $this->CI->load->view($view, $view_data, TRUE));
return $this->CI->load->view($template, $this->template_data, $return);
}
}
/* End of file Template.php */
/* Location: ./system/application/libraries/Template.php */
and i already called the library in autoload file
$autoload['libraries'] = array('session', 'database', 'template');
but the result is just a blank page, showing nothing
before i moved into live server, it's already works well on a localhost.
so, what i missed? Thanks in advanced