DataBase-Less Application

Hello all, I’m currently experimenting with yii, having previously used mojavi, symfony and ci :D

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 :D

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

Your model class may extend from CModel. FYI, both CFormModel and CActiveRecord extend from CModel.

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


;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

Install and enable PDO