public function __construct()
 {
     $this->view = new View();
     static::$className = get_called_class();
     $this->view->setClass(static::$className);
     $this->view->setLayParams('catList', Model_Category::getAllCategory());
 }
Beispiel #2
0
 /**
  * this function edit lot
  *
  */
 public function actionEdit()
 {
     if ($this->request->edit != "") {
         $id = $this->request->edit;
         $product = new MyProduct();
         $product->load($id);
     }
     $this->view->product = $product;
     $this->view->categories = Model_Category::getAllCategory();
     $this->view->render('edit');
     $this->view->display();
 }