Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 20th, 2018 59 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1.  public function actionMyfavourite()
  2.      {
  3.         //$model = new favourite_video;
  4.         //$this->render('myfavourite');
  5.         $model = new favourite_video;
  6.         if(isset($_GET["FavId1"]))
  7.         {
  8.             $myFavid1=array();
  9.             $myFavid1=explode(',',$_GET["FavId1"]);
  10.             $i=0;
  11.             foreach($myFavid1 as $value)
  12.             {
  13.                     $model=new myfavourite;
  14.                     $model->id=Yii::app()->user->id;
  15.                     $model->video_id=$myFavid1[$i++];
  16.                     $model->username=Yii::app()->user->id;
  17.                     $model->delete();
  18.             }
  19.         }
  20.         $this->render('myfavourite');
  21.      }
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