public function employmentAction() { $client = PR_Session::getSession(PR_Session::SESSION_USER); $UserID = $client["UserID"]; $emailaddress = $client["emailaddress"]; $password = $client["password"]; $Api = new PR_Api_User(); $authData = array('emailaddress' => $emailaddress, 'password' => $password); $getUserArray = $Api->getUserArray($authData); $core = new PR_Api_Core_CandidateClass(); $list = $core->getCandidateEmployments($UserID); $CandidateprofileID = $client["CandidateProfileID"]; $getCandidates = $core->getCandidateProfile($CandidateprofileID); $this->view->getCandidates = $getCandidates; $this->view->client = $getUserArray; $this->view->list = $list; // $this->render('profile'); }