CDbException

The table "tblrekapizin" for active record class "RekapIzin" cannot be found in the database.

/home/dpmpt/website/framework/db/ar/CActiveRecord.php(2362)

2350 
2351     /**
2352      * Constructor.
2353      * @param CActiveRecord $model the model instance
2354      * @throws CDbException if specified table for active record class cannot be found in the database
2355      */
2356     public function __construct($model)
2357     {
2358         $this->_modelClassName=get_class($model);
2359 
2360         $tableName=$model->tableName();
2361         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2362             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2363                 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2364         if($table->primaryKey===null)
2365         {
2366             $table->primaryKey=$model->primaryKey();
2367             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2368                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2369             elseif(is_array($table->primaryKey))
2370             {
2371                 foreach($table->primaryKey as $name)
2372                 {
2373                     if(isset($table->columns[$name]))
2374                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#4
+
 /home/dpmpt/website/protected/models/AllFunction.php(60): CActiveRecord->findAll("tblrekapizin_isparent=:mode", array(":mode" => "T"))
55         $data = WebDownload::model()->findAll('tblwebmenu_id=:menu AND tblwebdownload_status=:stat ORDER BY tblwebdownload_id DESC', array(':menu'=>$idmenu,':stat'=>'T'));
56         return $data;
57     }
58     public function getRekapIzinInduk()
59     {
60         $data = RekapIzin::model()->findAll('tblrekapizin_isparent=:mode', array(':mode'=>'T'));
61         return $data;
62     }
63     public function getJmlAnakRekapIzin($id)
64     {
65         $data['model'] = RekapIzin::model()->findAll('tblrekapizin_induk=:induk AND tblrekapizin_isparent=:mode', array(':induk'=>$id, ':mode'=>'F'));
#5
+
 /home/dpmpt/website/themes/frontend/views/layouts/modul/modul_izinterbit.php(33): AllFunction->getRekapIzinInduk()
28                   <th>2015</th>
29                   <th>2016</th>
30                 </tr>
31               </thead>
32               <tbody>
33               <?php $no=1; foreach (AllFunction::model()->getRekapIzinInduk() as $row_data): ?>
34                   <?php 
35                     $total_th1 += $row_data['tblrekapizin_th1'];
36                     $total_th2 += $row_data['tblrekapizin_th2'];
37                     $total_th3 += $row_data['tblrekapizin_th3'];
38                     $total_th4 += $row_data['tblrekapizin_th4'];
#6
+
 /home/dpmpt/website/themes/frontend/views/layouts/main.php(97): require("/home/dpmpt/website/themes/frontend/views/layouts/modul/modul_iz...")
092 
093                                 <div class="col-md-6">
094                                     <?php if ($this->action->id=='kontent'): ?>
095                                         <?php echo $content; ?>
096                                     <?php elseif ($this->action->id=='page'): ?>
097                                         <?php @require 'modul/'.$this->namamodul; ?>
098                                     <?php else: ?>
099                                         <?php echo $content; ?>
100                                     <?php endif ?>
101                                 </div>
102 
2018-04-20 21:14:30 Apache/2.2.22 (Ubuntu) Yii Framework/1.1.15