[eluser]il_dandi[/eluser]
I've tring to know an example that I've found ... linkster
in many pages I see $this->template->
what does that mean??
I found it in this function
function edit($id)
{
$this->template->metas('title', 'Administration Backend :: Categories :: Edit');
$this->load->helper('form');
$data['category'] = $this->listings->get_category($id);
if ( ! $this->_validate_form( $data['category']->name ) )
{
$this->template->display('admin/categories/edit', $data);
}
else
{
$this->listings->update_category($id);
$this->session->set_flashdata('msg', 'Category Updated');
redirect('admin/categories');
}
}
and in this function:
function Categories()
{
parent::MY_Admin();
// Load required classes
$this->load->model('listings_model', 'listings');
$this->load->library('validation');
// Template Settings
$this->template->metas('title', 'Administration Backend :: Categories');
}
Can you help me to know how (and where) to use "template"
Thanks