/websites/html/protected/framework/db/ar/CActiveRecord.php(2312)
2300 private $_model; 2301 2302 /** 2303 * Constructor. 2304 * @param CActiveRecord $model the model instance 2305 */ 2306 public function __construct($model) 2307 { 2308 $this->_model=$model; 2309 2310 $tableName=$model->tableName(); 2311 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2312 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2313 array('{class}'=>get_class($model),'{table}'=>$tableName))); 2314 if($table->primaryKey===null) 2315 { 2316 $table->primaryKey=$model->primaryKey(); 2317 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2318 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2319 else if(is_array($table->primaryKey)) 2320 { 2321 foreach($table->primaryKey as $name) 2322 { 2323 if(isset($table->columns[$name])) 2324 $table->columns[$name]->isPrimaryKey=true;
| #0 |
+
–
/websites/html/protected/framework/db/ar/CActiveRecord.php(388): CActiveRecordMetaData->__construct(Layout) 383 if(isset(self::$_models[$className])) 384 return self::$_models[$className]; 385 else 386 { 387 $model=self::$_models[$className]=new $className(null); 388 $model->_md=new CActiveRecordMetaData($model); 389 $model->attachBehaviors($model->behaviors()); 390 return $model; 391 } 392 } 393 |
| #1 |
+
–
/websites/html/protected/modules/wfcms/models/Layout.php(21): CActiveRecord::model("Layout") 16 * @param string $className active record class name. 17 * @return Layout the static model class 18 */ 19 public static function model($className=__CLASS__) 20 { 21 return parent::model($className); 22 } 23 24 /** 25 * @return string the associated database table name 26 */ |
| #2 |
+
–
/websites/html/protected/modules/wfcms/LayoutWidget.php(27): Layout::model() 22 { 23 $model=$this->model; 24 }elseif (isset($this->id)){ 25 $model=Layout::model()->findByPk($this->id); 26 }elseif(isset($this->keyword)){ 27 $model=Layout::model()->findByAttributes(array('keyword'=>$this->keyword)); 28 } 29 if ($model){ 30 $this->inline_edit($model); 31 echo "<div class='layout-area'>{$model->content}</div>"; 32 } |
| #3 |
+
–
/websites/html/protected/framework/web/CBaseController.php(148): LayoutWidget->init() 143 * @return CWidget the fully initialized widget instance. 144 */ 145 public function createWidget($className,$properties=array()) 146 { 147 $widget=Yii::app()->getWidgetFactory()->createWidget($this,$className,$properties); 148 $widget->init(); 149 return $widget; 150 } 151 152 /** 153 * Creates a widget and executes it. |
| #4 |
+
–
/websites/html/protected/framework/web/CBaseController.php(173): CBaseController->createWidget("wfcms.LayoutWidget", array("keyword" => "s_section1_img")) 168 $widget->run(); 169 return ob_get_clean(); 170 } 171 else 172 { 173 $widget=$this->createWidget($className,$properties); 174 $widget->run(); 175 return $widget; 176 } 177 } 178 |
| #5 |
+
–
/websites/html/themes/basic/views/site/index.php(35): CBaseController->widget("wfcms.LayoutWidget", array("keyword" => "s_section1_img")) 30 31 </div> 32 33 <div class="s_section1"> 34 <div class="center"> 35 <?php $this->widget('wfcms.LayoutWidget',array('keyword'=>'s_section1_img')); ?> 36 </div> 37 </div> 38 39 <div class="s_section2"> 40 <div class="pic_img"> |
| #6 |
+
–
/websites/html/protected/framework/web/CBaseController.php(127): require("/websites/html/themes/basic/views/site/index.php") 122 $data=$_data_; 123 if($_return_) 124 { 125 ob_start(); 126 ob_implicit_flush(false); 127 require($_viewFile_); 128 return ob_get_clean(); 129 } 130 else 131 require($_viewFile_); 132 } |
| #7 |
+
–
/websites/html/protected/framework/web/CBaseController.php(96): CBaseController->renderInternal("/websites/html/themes/basic/views/site/index.php", array("forms" => array(), "data" => null), true) 091 { 092 $widgetCount=count($this->_widgetStack); 093 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 094 $content=$renderer->renderFile($this,$viewFile,$data,$return); 095 else 096 $content=$this->renderInternal($viewFile,$data,$return); 097 if(count($this->_widgetStack)===$widgetCount) 098 return $content; 099 else 100 { 101 $widget=end($this->_widgetStack); |
| #8 |
+
–
/websites/html/protected/framework/web/CController.php(870): CBaseController->renderFile("/websites/html/themes/basic/views/site/index.php", array("forms" => array(), "data" => null), true) 865 */ 866 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 867 { 868 if(($viewFile=$this->getViewFile($view))!==false) 869 { 870 $output=$this->renderFile($viewFile,$data,true); 871 if($processOutput) 872 $output=$this->processOutput($output); 873 if($return) 874 return $output; 875 else |
| #9 |
+
–
/websites/html/protected/framework/web/CController.php(783): CController->renderPartial("index", array("forms" => array(), "data" => null), true) 778 */ 779 public function render($view,$data=null,$return=false) 780 { 781 if($this->beforeRender($view)) 782 { 783 $output=$this->renderPartial($view,$data,true); 784 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 785 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 786 787 $this->afterRender($view,$output); 788 |
| #10 |
+
–
/websites/html/protected/modules/wfbase/wftactions/WFTAction.php(135): CController->render("index", array("forms" => array(), "data" => null)) 130 { 131 if ($thislayout===false) 132 { 133 $controller->renderPartial($viewFile,$viewData); 134 }else{ 135 $controller->render($viewFile,$viewData); 136 } 137 } 138 $this->onAfterRender(new CEvent($this)); 139 } 140 |
| #11 |
+
–
/websites/html/protected/modules/wfbase/wftactions/WFTAction.php(81): WFTAction->render(null) 76 public function run() 77 { 78 $this->validateForms(); 79 $this->runAction(); 80 WFTDataHelper::setParameter('ActionData',$this->data); 81 $this->render($this->viewData); 82 } 83 protected function prepar() 84 { 85 $preparer=WFHelper::createComponent($this->pagePreparer); 86 if (isset($preparer)) |
| #12 |
+
–
/websites/html/protected/framework/web/actions/CAction.php(75): WFTAction->run() 70 { 71 $method=new ReflectionMethod($this, 'run'); 72 if($method->getNumberOfParameters()>0) 73 return $this->runWithParamsInternal($this, $method, $params); 74 else 75 return $this->run(); 76 } 77 78 /** 79 * Executes a method of an object with the supplied named parameters. 80 * This method is internally used. |
| #13 |
+
–
/websites/html/protected/framework/web/CController.php(309): CAction->runWithParams(array()) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
| #14 |
+
–
/websites/html/protected/framework/web/filters/CFilterChain.php(134): CController->runAction(WFTAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #15 |
+
–
/websites/html/protected/framework/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
| #16 |
+
–
/websites/html/protected/modules/wfbase/components/WfThemeController.php(38): CFilter->filter(CFilterChain) 33 } 34 public function filterAccessControl($filterChain) 35 { 36 $filter=new WfAccessControlFilter; 37 $filter->setRules($this->accessRules()); 38 $filter->filter($filterChain); 39 } 40 public function getNodeHelper() 41 { 42 if (!isset($this->_nodeHelper)) 43 { |
| #17 |
+
–
/websites/html/protected/framework/web/filters/CInlineFilter.php(59): WfThemeController->filterAccessControl(CFilterChain) 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
| #18 |
+
–
/websites/html/protected/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #19 |
+
–
/websites/html/protected/framework/web/CController.php(292): CFilterChain->run() 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); 293 $this->_action=$priorAction; 294 } 295 } 296 297 /** |
| #20 |
+
–
/websites/html/protected/framework/web/CController.php(266): CController->runActionWithFilters(WFTAction, array("accessControl")) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
| #21 |
+
–
/websites/html/protected/framework/web/CWebApplication.php(283): CController->run("") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #22 |
+
–
/websites/html/protected/framework/web/CWebApplication.php(142): CWebApplication->runController("") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
| #23 |
+
–
/websites/html/protected/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
| #24 |
+
–
/websites/html/index.php(11): CApplication->run() 06 require(dirname(__FILE__).'/protected/config/WfConfigHelper.php'); 07 WfConfigHelper::loadEnv(); 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 Yii::createWebApplication($config)->run(); |