예제 #1
0
 public function editProjectTeamAction()
 {
     $this->_helper->viewRenderer->setNoRender(false);
     $this->_helper->layout->disableLayout();
     $projectId = $this->_getParam('id');
     $this->view->corporations = Application_Model_Corporations::GetAllCorporations();
     $this->view->project_id = $projectId;
     $this->view->isEmployee = ProNav_Auth::isEmployee();
     $billToCorpId = Application_Model_Projects::getProjectBillToCorporationId($projectId);
     foreach ($this->view->corporations as $corp) {
         if ($corp->corporation_id == $billToCorpId) {
             $this->view->billToCorp = $corp;
             break;
         }
     }
 }