Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Auth Extension

$
0
0
Hello
I've just installed the Bootstap extension and the Auth extension by Chris83

Getting this error when I try to access <my web root>/auth/Assignment/ :

Property "User.name" is not defined

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

Stack Trace
#0
+
/srv/www/htdocs/framework/db/ar/CActiveRecord.php(144): CComponent->__get("name")
#1

/srv/www/htdocs/gweb/protected/modules/auth/widgets/AuthAssignmentNameColumn.php(43): CActiveRecord->__get("name")

38 * @param mixed $data the data associated with the row.
39 */
40 protected function renderDataCellContent($row, $data)
41 {
42 if (isset($this->nameColumn))
43 echo CHtml::link($data->{$this->nameColumn}, array('view', 'id'=>$data->{$this->idColumn}));
44 }
45 }

Appreciate any help getting this working. Thanks.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>