Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $variable = Model::model()->findAll();
- $data = Post::model()->findAllBySql("select * from tbl_post where id=".$data->id);
- $post=Post::model()->find(array(
- 'condition'=>'postID=:postID',
- 'params'=>array(':postID'=>$data->id)
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement