Example #1
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));
 }
Example #2
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('/roles');
 }