I've two web applications. The first is an intial web application just created by the webapp command. the second is a copy of the blog demo. I'm trying to add a categories management to this project. So I've created a table category and now want to create the model by command line. Unfortunately, it doesn't work.
I have this error message when trying to run yiic. Then message appears as an html document in the command prompt:
Quote
It happens here : J:\Developpement\serveur\yii\framework\YiiBase.php(316)
00307: public static function autoload($className)
00308: {
00309: // use include so that the error PHP file may appear
00310: if(isset(self::$_coreClasses[$className]))
00311: include(YII_PATH.self::$_coreClasses[$className]);
00312: else if(isset(self::$_classes[$className]))
00313: include(self::$_classes[$className]);
00314: else
00315: {
00316: include($className.'.php');
00317: return class_exists($className,false) || interface_exists($className,false);
00318: }
00319: return true;
00320: }Curiously, in the initial project, I can run yiic but not the model User command. I get pretty much the same error message, but as a prompt message
J:\Developpement\serveur\web>yiic shell test\index.php Yii Interactive Tool v1.0 (based on Yii v1.0.7) Please type 'help' for help. Type 'exit' to quit. >> model User Warning: include(PDO.php): failed to open stream: No such file or directory in J:\Developpement\serveur\yii\framework\YiiBase.php on line 316 Warning: include(): Failed opening 'PDO.php' for inclusion (include_path='.;C:\php5\pear;J:\Developpement\serveur\web\test\protected\models; J:\Developpement\serveur\web\test\protected\components') in J:\Developpement\serveur\yii\framework\YiiBase.php on line 316 Fatal error: Class 'PDO' not found in J:\Developpement\serveur\yii\framework\db\CDbConnection.php on line 282 J:\Developpement\serveur\web>
Search I've done returned nothing. Does anybody could help me?
Kind regards,
Bruno.

Help

This topic is locked




Linkedin
Facebook
Twitter








