Example #1
0
 /**
  * Save Skill
  * @param sfWebRequest $request
  * @return unknown_type
  */
 public function executeSaveSkill(sfWebRequest $request)
 {
     $skillService = new SkillService();
     if ($request->isMethod('post')) {
         $skill = new Skill();
         $skill->setSkillName($request->getParameter('txtSkillName'));
         $skill->setSkillDescription($request->getParameter('txtSkillDesc'));
         $skillService->saveSkill($skill);
         $this->setMessage('SUCCESS', array(TopLevelMessages::SAVE_SUCCESS));
         $this->redirect('admin/listSkill');
     }
 }