CDbException

Таблица "tbl_post", упомянутая в записи active record класса "Post", не найдена в базе данных.

/home/users/h/hamsterman/domains/hamsterman.ru/protected/framework/db/ar/CActiveRecord.php(2264)

2252     private $_model;
2253 
2254     /**
2255      * Constructor.
2256      * @param CActiveRecord $model the model instance
2257      */
2258     public function __construct($model)
2259     {
2260         $this->_model=$model;
2261 
2262         $tableName=$model->tableName();
2263         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2264             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2265                 array('{class}'=>get_class($model),'{table}'=>$tableName)));
2266         if($table->primaryKey===null)
2267         {
2268             $table->primaryKey=$model->primaryKey();
2269             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2270                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2271             else if(is_array($table->primaryKey))
2272             {
2273                 foreach($table->primaryKey as $name)
2274                 {
2275                     if(isset($table->columns[$name]))
2276                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#2
+
 /home/users/h/hamsterman/domains/hamsterman.ru/protected/controllers/BlogController.php(137): CActiveDataProvider->__construct("Post", array("pagination" => array("pageSize" => 3), "criteria" => CDbCriteria))
132 
133         $dataProvider=new CActiveDataProvider('Post', array(
134             'pagination'=>array(
135                 'pageSize'=>Yii::app()->params['postsPerPage'],
136             ),
137             'criteria'=>$criteria,
138         ));
139         $this->render('index', array(
140             'dataProvider'=>$dataProvider,
141         ));
142     }
#7
+
 /home/users/h/hamsterman/domains/hamsterman.ru/protected/components/Controller.php(100): CFilter->filter(CFilterChain)
095         Yii::import('userGroups.models.UserGroupsUser');
096         Yii::import('userGroups.models.UserGroupsConfiguration');
097         Yii::import('userGroups.components.UserGroupsAccessControl');
098         $filter=new UserGroupsAccessControl;
099         $filter->setRules($this->accessRules());
100         $filter->filter($filterChain);
101     }
102     
103 }
#15
+
 /home/users/h/hamsterman/domains/hamsterman.ru/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-19 05:34:57 Apache Yii Framework/1.1.10