从c调用yii

I'm trying to activate a PHP script from a C file but I get an error when the script tries to activate a CActiveRecord class. I guess it's a problem related to yii.
Anyway, here is what I got:
Fatal error: Class 'CActiveRecord' not found in /var/www/.../models/SomeModelTbl.php on line 16.

Any thoughts?