public function createAction()
 {
     $this->view->Title = "Management sections";
     $this->view->headTitle($this->view->Title);
     if ($this->getRequest()->isPost()) {
         $request = $this->getRequest()->getParams();
         $error = $this->_checkForm($request);
         if (count($error) == 0) {
             $Product = new Setions();
             $Product->merge($request);
             $Product->save();
             $this->Member->log('Setions:' . $Product->name . '(' . $Product->id . ')', 'Created');
             My_Plugin_Libs::setSplash('Create: <b>' . $Product->name . '</b> have been completed. ');
             $this->_redirect($this->_helper->url('index', 'setions', 'admin'));
         }
         if (count($error)) {
             $this->view->error = $error;
         }
     }
 }
 public function createAction()
 {
     $this->view->Title = "Quản lý danh mục";
     $this->view->headTitle($this->view->Title);
     if ($this->getRequest()->isPost()) {
         $request = $this->getRequest()->getParams();
         $error = $this->_checkForm($request);
         if (count($error) == 0) {
             $Product = new Setions();
             $Product->merge($request);
             $Product->save();
             $this->Member->log('Danh mục:' . $Product->name . '(' . $Product->id . ')', 'Tạo mới');
             My_Plugin_Libs::setSplash('Danh mục: <b>' . $Product->name . '</b> đã tạo thành công. ');
             $this->_redirect($this->_helper->url('index', 'setions', 'admin'));
         }
         if (count($error)) {
             $this->view->error = $error;
         }
     }
 }