/www/wwwroot/rmixconcreteplants.com/web/framework/db/CDbCommand.php(541)
529 { 530 if($this->_connection->enableProfiling) 531 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 532 533 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 534 $message=$e->getMessage(); 535 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 536 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 537 538 if(YII_DEBUG) 539 $message.='. The SQL statement executed was: '.$this->getText().$par; 540 541 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 542 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 543 } 544 } 545 546 /** 547 * Builds a SQL SELECT statement from the given query specification. 548 * @param array $query the query specification in name-value pairs. The following 549 * query options are supported: {@link select}, {@link distinct}, {@link from}, 550 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 551 * {@link limit}, {@link offset} and {@link union}. 552 * @return string the SQL statement 553 * @since 1.1.6
#0 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/db/CDbCommand.php(395): CDbCommand->queryInternal("fetchAll", array(2), array()) 390 * An empty array is returned if the query results in nothing. 391 * @throws CException execution failed 392 */ 393 public function queryAll($fetchAssociative=true,$params=array()) 394 { 395 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 396 } 397 398 /** 399 * Executes the SQL statement and returns the first row of the result. 400 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/db/schema/sqlite/CSqliteSchema.php(128): CDbCommand->queryAll() 123 * @return boolean whether the table exists in the database 124 */ 125 protected function findColumns($table) 126 { 127 $sql="PRAGMA table_info({$table->rawName})"; 128 $columns=$this->getDbConnection()->createCommand($sql)->queryAll(); 129 if(empty($columns)) 130 return false; 131 132 foreach($columns as $column) 133 { |
#2 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/db/schema/sqlite/CSqliteSchema.php(111): CSqliteSchema->findColumns(CDbTableSchema) 106 { 107 $table=new CDbTableSchema; 108 $table->name=$name; 109 $table->rawName=$this->quoteTableName($name); 110 111 if($this->findColumns($table)) 112 { 113 $this->findConstraints($table); 114 return $table; 115 } 116 else |
#3 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/db/schema/CDbSchema.php(103): CSqliteSchema->loadTable("mt_option") 098 $cache->set($key,$table,$duration); 099 } 100 $this->_tables[$name]=$table; 101 } 102 else 103 $this->_tables[$name]=$table=$this->loadTable($realName); 104 105 if(isset($qcDuration)) // re-enable query caching 106 $this->_connection->queryCachingDuration=$qcDuration; 107 108 return $table; |
#4 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/db/ar/CActiveRecord.php(2309): CDbSchema->getTable("{{option}}") 2304 public function __construct($model) 2305 { 2306 $this->_model=$model; 2307 2308 $tableName=$model->tableName(); 2309 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2310 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2311 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2312 if($table->primaryKey===null) 2313 { 2314 $table->primaryKey=$model->primaryKey(); |
#5 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/db/ar/CActiveRecord.php(387): CActiveRecordMetaData->__construct(Option) 382 if(isset(self::$_models[$className])) 383 return self::$_models[$className]; 384 else 385 { 386 $model=self::$_models[$className]=new $className(null); 387 $model->_md=new CActiveRecordMetaData($model); 388 $model->attachBehaviors($model->behaviors()); 389 return $model; 390 } 391 } 392 |
#6 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/protected/models/Option.php(20): CActiveRecord::model("Option") 15 * Returns the static model of the specified AR class. 16 * @return Option the static model class 17 */ 18 public static function model($className=__CLASS__) 19 { 20 return parent::model($className); 21 } 22 23 /** 24 * @return string the associated database table name 25 */ |
#7 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/protected/components/Controller.php(25): Option::model() 20 * be assigned to {@link CBreadcrumbs::links}. Please refer to {@link CBreadcrumbs::links} 21 * for more details on how to specify this property. 22 */ 23 public $breadcrumbs=array(); 24 public function init(){ 25 $this->optionInfo=Option::model()->findByPk(1); 26 } 27 } |
#8 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/web/CWebApplication.php(281): Controller->init() 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#9 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/web/CWebApplication.php(141): CWebApplication->runController("product/index1/cid/6") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#10 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#11 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/common.php(13): CApplication->run() 08 // specify how many levels of call stack should be shown in each log message 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 require_once($yii); 11 $app=Yii::createWebApplication($config); 12 require_once($globals); 13 $app->run(); |
#12 |
+
–
/www/wwwroot/rmixconcreteplants.com/web/index.php(3): require_once("/www/wwwroot/rmixconcreteplants.com/web/common.php") 1 <?php 2 $config=dirname(__FILE__).'/protected/config/main.php'; 3 require_once('./common.php'); |