hi i want to show the only specific user data from the database. i am new in Yii. how could it possible. in core coding we have user id and fetch from database against that id. but i cant understand the yii. how could it possible
Thanks
hi i want to show the only specific user data from the database. i am new in Yii. how could it possible. in core coding we have user id and fetch from database against that id. but i cant understand the yii. how could it possible
Thanks
If you are using Active Record, the combination of it’s findByPk() method and CDbCriteria is what you need:
http://www.yiiframework.com/doc/api/CActiveRecord#findByPk-detail
http://www.yiiframework.com/doc/api/CDbCriteria#select-detail
And The Guide of course… http://www.yiiframework.com/doc/guide/database.ar#reading-record