public function deleteRoleAction()
    {
        //wyszukiwanie i usuwanie roli
        if ((null !== $role = (new \Cms\Orm\CmsRoleQuery)->findPk($this->id))) {
            $this->getMessenger()->addMessage(($deleteResult = (bool) $role->delete()) ? 'messenger.acl.role.deleted' : 'messenger.acl.role.delete.error', $deleteResult);
        }
        //redirect
        $this->getResponse()->redirect('cmsAdmin', 'acl', 'index', ['roleId' => $this->id]);
    }
public function deleteRoleAction()
    {
        //wyszukiwanie i usuwanie roli
        if ((null !== $role = (new \Cms\Orm\CmsRoleQuery)->findPk($this->id))) {
            $this->getMessenger()->addMessage(($deleteResult = (bool) $role->delete()) ? 'messenger.acl.role.deleted' : 'messenger.acl.role.delete.error', $deleteResult);
        }
        //redirect
        $this->getResponse()->redirect('cmsAdmin', 'acl', 'index', ['roleId' => $this->id]);
    }
public function deleteRoleAction ( ) { //wyszukiwanie i usuwanie roli if ( ( null !== $ role = ( new \ Cms \ Orm \ CmsRoleQuery ) -> findPk ( $ this -> id ) ) ) { $ this -> getMessenger ( ) -> addMessage ( ( $ deleteResult = ( bool ) $ role -> delete ( ) ) ? 'messenger.acl.role.deleted' : 'messenger.acl.role.delete.error' , $ deleteResult ) ; } //redirect $ this -> getResponse ( ) -> redirect ( 'cmsAdmin' , 'acl' , 'index' , [ 'roleId' => $ this -> id ] ) ; }
Akcja usuwania roli
Akcja usuwania roli