예제 #1
0
 public function _index()
 {
     $this->addParameter("email", "string", array(Flag::REQUIRED));
     $this->addParameter("password", "string", array(Flag::REQUIRED));
     $this->addParameter("image", "fileimage");
     $this->cleanParameters();
     //or $this->isValidParameters()
     //dump($this->parametersValue); exit;
     $this->pagedata["form"] = $this->crud->edit($this->id, $this->parametersMeta[$this->getMethod()], $this->parametersValue);
     return true;
 }
예제 #2
0
 public function _delete()
 {
     $this->setAdminPage();
     $this->crud->delete($this->id);
     redirect($this->getPageName() . '/browse');
 }