CException

属性 "Picture.url" 未被定义.

/www/wwwroot/gaoyuan/framework/db/ar/CActiveRecord.php(145)

133      */
134     public function __get($name)
135     {
136         if(isset($this->_attributes[$name]))
137             return $this->_attributes[$name];
138         elseif(isset($this->getMetaData()->columns[$name]))
139             return null;
140         elseif(isset($this->_related[$name]))
141             return $this->_related[$name];
142         elseif(isset($this->getMetaData()->relations[$name]))
143             return $this->getRelated($name);
144         else
145             return parent::__get($name);
146     }
147 
148     /**
149      * PHP setter magic method.
150      * This method is overridden so that AR attributes can be accessed like properties.
151      * @param string $name property name
152      * @param mixed $value property value
153      */
154     public function __set($name,$value)
155     {
156         if($this->setAttribute($name,$value)===false)
157         {

Stack Trace

#1
+
 /www/wwwroot/gaoyuan/themes/default/views/content/list.php(44): CActiveRecord->__get("url")
39     $list = $aa->findAll($criteria);
40     ?>
41     <ul class="list_1">
42         <?php foreach ($list as $v) {
43           ?>
44         <li><a href="<?php echo $v->url; ?>" target="_blank"><?php echo $v->title; ?></a><span><?php echo date('Y-m-d', $v->create_time); ?></span>
45         </li>
46       <?php } ?>
47     </ul>
48     <div class="pagelist">
49           <?php
#6
+
 /www/wwwroot/gaoyuan/protected/controllers/ContentController.php(42): CController->render("list")
37       $tpl = $this->cate['indextpl'];
38     }
39     if ($tpl == '') {
40       $tpl = 'list';
41     }
42     $this->render($tpl);
43   }
44   
45   public function actionView($cid, $id) {
46     $cid = intval($cid);
47     $id = intval($id);
#16
+
 /www/wwwroot/gaoyuan/common.php(14): CApplication->run()
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', 5);
11 require_once($yii);
12 $app = Yii::createWebApplication($config);
13 require_once($globals);
14 $app->run();
2019-04-15 17:55:32 nginx/1.12.2 Yii Framework/1.1.16
<友情连结>新利app下载/吉祥坊国际平台下载/九州平台娱乐/