Example #1
0
 /** 
  * Edit one category
  *
  * @param	int			$id_category
  * @param	bool|string	$parent			Element from which we edit the categories list
  * @param	bool|string	$id_parent
  *
  */
 public function edit($id_category, $parent = FALSE, $id_parent = FALSE)
 {
     $this->category_model->feed_template($id_category, $this->template);
     $this->category_model->feed_lang_template($id_category, $this->template);
     // Pass the parent informations to the template
     $this->template['parent'] = $parent;
     $this->template['id_parent'] = $id_parent;
     $this->template['categories'] = $this->category_model->get_list(array('order_by' => 'ordering ASC'));
     $this->output('category/category');
 }