コード例 #1
0
ファイル: category.php プロジェクト: trk/ionize
 /**
  * Prints out the category form
  *
  * @param	bool|string		$parent 	Element from which we edit the categories list
  * @param	bool|string		$id_parent	parent ID
  */
 public function get_form($parent = FALSE, $id_parent = FALSE)
 {
     $this->category_model->feed_blank_template($this->template);
     $this->category_model->feed_blank_lang_template($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');
 }