Exemplo n.º 1
0
 /**
  * Remove action method
  *
  * @return void
  */
 public function remove()
 {
     if ($this->request->isPost()) {
         $role = new Model\Role();
         $role->remove($this->request->getPost());
     }
     $this->sess->setRequestValue('removed', true);
     $this->redirect(BASE_PATH . APP_URI . '/roles');
 }
Exemplo n.º 2
0
 /**
  * Remove action method
  *
  * @return void
  */
 public function remove()
 {
     $roleId = $this->getRoleId();
     $role = new Model\Role();
     $role->remove(['rm_roles' => [$roleId]]);
     $this->console->write();
     $this->console->write($this->console->colorize('Role Removed!', Console::BOLD_RED));
 }