Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1.     public function addAction() {
  2.         $obj_form_addvideo=new Application_Form_AddVideos();
  3.         $this->view->addvideosform=$obj_form_addvideo;
  4.        
  5.         $request=$this->getRequest();
  6.         if($request->isPost()){
  7.             $formData=$request->getPost();
  8.             if($obj_form_addvideo->isValid($formData)){
  9.                 //$title=$formData["nm_videotitle"];
  10.                 $title=$obj_form_addvideo->getValue("nm_videotitle");
  11.                 $description=$obj_form_addvideo->getValue("nm_videodescription");
  12.                 //$image=$obj_form_addvideo->getValue("nm_videoimage");            
  13.                
  14.                 $obj_model=new Application_Model_DbTable_Videos();
  15.                 $obj_model->addVideos($title, $description);
  16.                
  17.                 $this->_helper->redirector('arcade', 'index');
  18.             }
  19.         }
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement