Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. $variable = Model::model()->findAll();
  2.  
  3. $data = Post::model()->findAllBySql("select * from tbl_post where id=".$data->id);
  4.  
  5. $post=Post::model()->find(array(
  6. 'condition'=>'postID=:postID',
  7. 'params'=>array(':postID'=>$data->id)
  8. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement