CDbException

Die Tabelle "page" für die ActiveRecord-Klasse "Page" kann nicht in der Datenbank gefunden werden.

/var/www/clients/client18/web144/web/yii/framework/db/ar/CActiveRecord.php(2276)

2264     private $_model;
2265 
2266     /**
2267      * Constructor.
2268      * @param CActiveRecord $model the model instance
2269      */
2270     public function __construct($model)
2271     {
2272         $this->_model=$model;
2273 
2274         $tableName=$model->tableName();
2275         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2276             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2277                 array('{class}'=>get_class($model),'{table}'=>$tableName)));
2278         if($table->primaryKey===null)
2279         {
2280             $table->primaryKey=$model->primaryKey();
2281             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2282                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2283             else if(is_array($table->primaryKey))
2284             {
2285                 foreach($table->primaryKey as $name)
2286                 {
2287                     if(isset($table->columns[$name]))
2288                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#1
+
 /var/www/clients/client18/web144/web/protected/models/Page.php(24): CActiveRecord::model()
19      * Returns the static model of the specified AR class.
20      * @return Page the static model class
21      */
22     public static function model($className=__CLASS__)
23     {
24         return parent::model($className);
25     }
26 
27     /**
28      * @return string the associated database table name
29      */
#2
+
 /var/www/clients/client18/web144/web/protected/controllers/PageController.php(117): Page::model()
112      */
113 
114     public function actionView($seoname)
115     {
116         $this->layout='//layouts/site';
117         $this->model = Page::model()->findByAttributes(array('seoname'=>$seoname ))->getContent("hu");
118         $this->_description = $this->model->description;
119         $this->_keywords = $this->model->keywords;
120         $this->pageTitle = $this->model->title;
121         $this->render('view',array('model'=>$this->model));
122 
#17
+
 /var/www/clients/client18/web144/web/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 17:10:31 Apache Yii Framework/1.1.8