상속: extends TooBasic\UsersManagement\Controller
예제 #1
0
 /**
  * index method
  *
  * @return void
  */
 public function index()
 {
     $PermissionsController = new PermissionsController();
     $isPermision = $PermissionsController->checkPermission(1, 1);
     if (!$isPermision) {
         return $this->redirect(array('controller' => 'pages', 'action' => 'home'));
     }
     $this->set('permanencia', $this->Permanencium->find('all', array('conditions' => array('id_exportador' => '059'))), $this->Paginator->paginate());
 }
 /**
  * index method
  *
  * @return void
  */
 public function index()
 {
     $PermissionsController = new PermissionsController();
     $isPermision = $PermissionsController->checkPermission(1, 2);
     if (!$isPermision) {
         return $this->redirect(array('controller' => 'pages', 'action' => 'home'));
     }
     $this->Pesosdescargue->recursive = 0;
     $this->set('pesosdescargues', $this->Paginator->paginate());
 }