Beispiel #1
0
 public function action_product()
 {
     $sushi = new Model_Admin();
     $result = $sushi->read_product();
     $category = $sushi->get_category();
     $category = $category->as_array();
     $result = $result->as_array();
     $content = View::factory('/admin/product');
     $content->product = $result;
     $content->category = $category;
     $this->template->scripts = array('jquery-1.11.3.min', 'bootstrap.min', 'admin4');
     $this->template->content = $content;
 }