daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Jun 21st, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function executeUpdate(sfWebRequest $request)
  2.     {
  3.        //print_r($request->getParameterHolder->getAll());
  4.  
  5.        echo'ici';
  6.  
  7.       if($request->hasParameter('id'))
  8.       {
  9.          
  10.            = VideoPeer::retrieveByPk($request->getParameter('id');
  11.           $this->form = new VideoForm($video);                       // le form sera ici pré-rempli
  12.           // on renvoie le form qui devra ê mis à jour
  13.           $this->setTemplate('edit');                              
  14.  
  15.      }elseif($request->hasParameter('video'))
  16.      {
  17.  
  18.  
  19.           $this->form->bind($request->getParameter('video'));
  20.       //...
  21.  
  22.      }
  23.    
  24.  
  25.      
  26.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top