Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionMyfavourite()
- {
- //$model = new favourite_video;
- //$this->render('myfavourite');
- $model = new favourite_video;
- if(isset($_GET["FavId1"]))
- {
- $myFavid1=array();
- $myFavid1=explode(',',$_GET["FavId1"]);
- $i=0;
- foreach($myFavid1 as $value)
- {
- $model=new myfavourite;
- $model->id=Yii::app()->user->id;
- $model->video_id=$myFavid1[$i++];
- $model->username=Yii::app()->user->id;
- $model->delete();
- }
- }
- $this->render('myfavourite');
- }
Add Comment
Please, Sign In to add comment