public function dashboardAction()
    {
        /* @var Request $request */
        $request = $this->getRequest();
        $params = $request->getQuery();
        $isRecruiter = $this->Acl()->isRole('recruiter');
        if ($isRecruiter) {
            $params->set('by', 'me');
        }

        //default sorting
        if (!isset($params['sort'])) {
            $params['sort']="-date";
        }
        $params->count = 5;
        $params->pageRange=5;

        $this->paginationParams()->setParams('Applications\Index', $params);

        $paginator = $this->paginator('Applications', $params->toArray());
     
        return array(
            'script' => 'applications/index/dashboard',
            'applications' => $paginator
        );
    }
public function dashboardAction()
    {
        /* @var Request $request */
        $request = $this->getRequest();
        $params = $request->getQuery();
        $isRecruiter = $this->Acl()->isRole('recruiter');
        if ($isRecruiter) {
            $params->set('by', 'me');
        }

        //default sorting
        if (!isset($params['sort'])) {
            $params['sort']="-date";
        }
        $params->count = 5;
        $params->pageRange=5;

        $this->paginationParams()->setParams('Applications\Index', $params);

        $paginator = $this->paginator('Applications', $params->toArray());
     
        return array(
            'script' => 'applications/index/dashboard',
            'applications' => $paginator
        );
    }
public function dashboardAction ( ) { /* @var Request $request */ $ request = $ this -> getRequest ( ) ; $ params = $ request -> getQuery ( ) ; $ isRecruiter = $ this -> Acl ( ) -> isRole ( 'recruiter' ) ; if ( $ isRecruiter ) { $ params -> set ( 'by' , 'me' ) ; } //default sorting if ( ! isset ( $ params [ 'sort' ] ) ) { $ params [ 'sort' ] = "-date" ; } $ params -> count = 5 ; $ params -> pageRange = 5 ; $ this -> paginationParams ( ) -> setParams ( 'Applications\Index' , $ params ) ; $ paginator = $ this -> paginator ( 'Applications' , $ params -> toArray ( ) ) ; return array ( 'script' => 'applications/index/dashboard' , 'applications' => $ paginator ) ; }
Handles dashboard listings of applications

@return array
Handles dashboard listings of applications