Welcome Guest, Not a member yet? Register   Sign In
Template Lib/Parser question
#4

[eluser]the_unforgiven[/eluser]
My full controller
Code:
$total = $this->client_model->client_count();
  $per_pg = 20;
  $offset = $this->uri->segment(3);

  $config['base_url'] = $data['base'].'/admin/clientlist/';
  $config['total_rows'] = $total;
  $config['per_page'] = $per_pg;
  $config['full_tag_open'] = '<div id="pagination">';
  $config['full_tag_close'] = '</div>';
        $this->pagination->initialize($config);
        $data['pagination'] = $this->pagination->create_links();
        $data['total_rows'] = $config['total_rows'];
  $data['show_from'] = $offset + 1;
  $data['show_to'] = $offset + $per_pg;
  if($data['show_to'] > $total) {
   $data['show_to'] = $total;
  }
        $data['query'] = $this->client_model->get_all($per_pg,$offset);
  
  $this->template
   ->enable_parser(TRUE)
   ->title(lang('client_title'));

  $this->template
   ->set_layout('default')
   ->build('admin/clientlist', $data);

So now i need to know how to get in my view file, if the template is set to clientlist for example so this, else show this...


Messages In This Thread
Template Lib/Parser question - by El Forum - 08-13-2012, 07:47 AM
Template Lib/Parser question - by El Forum - 08-13-2012, 03:07 PM
Template Lib/Parser question - by El Forum - 08-13-2012, 04:56 PM
Template Lib/Parser question - by El Forum - 08-14-2012, 02:43 AM
Template Lib/Parser question - by El Forum - 08-16-2012, 07:33 AM
Template Lib/Parser question - by El Forum - 08-16-2012, 07:58 AM
Template Lib/Parser question - by El Forum - 08-16-2012, 08:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB