Example #1
0
 /**
  * Save Customer
  * @param sfWebRequest $request
  * @return unknown_type
  */
 public function executeSaveProject(sfWebRequest $request)
 {
     $projectService = new ProjectService();
     if ($request->isMethod('post')) {
         $project = new Project();
         $project->setCustomerId($request->getParameter('cmbCustomerId'));
         $project->setName($request->getParameter('txtName'));
         $project->setDescription($request->getParameter('txtDescription'));
         $projectService->saveProject($project);
         $this->setMessage('SUCCESS', array(TopLevelMessages::SAVE_SUCCESS));
         $this->redirect('admin/listProject');
     }
     $customerService = new CustomerService();
     $this->listCustomer = $customerService->getCustomerList();
 }