Advertisement
zulmi

view controller part 1

Nov 21st, 2017
7,564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1.     public function actionView($id)
  2.     {
  3.         $SQL="SELECT * FROM bp_produk WHERE kategori_produk_id='".$id."'";
  4.         $commands=Yii::app()->db->createCommand($SQL);
  5.         $models=$commands->queryAll();
  6.  
  7.         $this->render('view',array(
  8.             'model'=>$this->loadModel($id),'models'=>$models
  9.         ));
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement