ZaQ
(Zaqr 101)
1
Hello all, I’m currently experimenting with yii, having previously used mojavi, symfony and ci 
I’d like to ask, what’s the best practice in yii to code a db-less application?
for example, I’d like the app to fetch and update records on a remote db server through a webservice
call, how would you structure the model(s)?
thanks for any input 
umutau
(Umutau)
2
Create base model class, add function like update select etc , Let’s say you want to update one product, call that model from your Product Model
qiang
(Qiang Xue)
3
Your model class may extend from CModel. FYI, both CFormModel and CActiveRecord extend from CModel.
kareem_zok
(Kareemzok)
4
i m facing a prob while created of model in yii framework :
Warning: YiiBase::include(PDO.php): failed to open stream: No such file or direc
tory in C:\wamp\framework\YiiBase.php on line 338
Warning: YiiBase::include(): Failed opening ‘PDO.php’ for inclusion (include_pat
h=’.;C:\wamp\www\yiitst\protected\components;C:\wamp\www\yiitst\protected\models
;C:\php5\pear’) in C:\wamp\framework\YiiBase.php on line 338
Fatal error: Class ‘PDO’ not found in C:\wamp\framework\db\CDbConnection.php on
line 296
any solution ?:S
samdark
(Alexander Makarov)
5