CException
Description
Property "LibraryBook." is not defined.
Source File
C:\wamp\www\yii\framework\db\ar\CActiveRecord.php(110)
00098: */
00099: public function __get($name)
00100: {
00101: if(isset($this->_attributes[$name]))
00102: return $this->_attributes[$name];
00103: else if(isset($this->getMetaData()->columns[$name]))
00104: return null;
00105: else if(isset($this->_related[$name]))
00106: return $this->_related[$name];
00107: else if(isset($this->getMetaData()->relations[$name]))
00108: return $this->getRelated($name);
00109: else
00110: return parent::__get($name);
00111: }
00112:
00113: /**
00114: * PHP setter magic method.
00115: * This method is overridden so that AR attributes can be accessed like properties.
00116: * @param string property name
00117: * @param mixed property value
00118: */
00119: public function __set($name,$value)
00120: {
00121: if($this->setAttribute($name,$value)===false)
00122: {
Stack Trace
#0 C:\wamp\www\yii\framework\db\ar\CActiveRecord.php(110): CComponent->__get(’’)
#1 C:\wamp\www\yii\framework\web\helpers\CHtml.php(1995): CActiveRecord->__get(’’)
#2 C:\wamp\www\yii\framework\web\helpers\CHtml.php(1743): CHtml::resolveValue(Object(LibraryBook), ‘[0]bookISBN’)
#3 C:\wamp\www\yii\framework\web\helpers\CHtml.php(1181): CHtml::activeInputField(‘text’, Object(LibraryBook), ‘[0]bookISBN’, Array)
#4 C:\wamp\www\yii\framework\web\widgets\CAutoComplete.php(220): CHtml::activeTextField(Object(LibraryBook), ‘[0]bookISBN’, Array)
#5 C:\wamp\www\yii\framework\web\CBaseController.php(140): CAutoComplete->init()
#6 C:\wamp\www\yii\framework\web\CBaseController.php(165): CBaseController->createWidget(‘CAutoComplete’, Array)
#7 C:\wamp\www\csrbdemo11\protected\views\library\_form.php(59): CBaseController->widget(‘CAutoComplete’, Array)
#8 C:\wamp\www\yii\framework\web\CBaseController.php(119): require(‘C:\wamp\www\csr…’)
#9 C:\wamp\www\yii\framework\web\CBaseController.php(88): CBaseController->renderInternal(‘C:\wamp\www\csr…’, Array, true)
#10 C:\wamp\www\yii\framework\web\CController.php(798): CBaseController->renderFile(‘C:\wamp\www\csr…’, Array, true)
#11 C:\wamp\www\csrbdemo11\protected\views\library\create.php(15): CController->renderPartial(’_form’, Array)
#12 C:\wamp\www\yii\framework\web\CBaseController.php(119): require(‘C:\wamp\www\csr…’)
#13 C:\wamp\www\yii\framework\web\CBaseController.php(88): CBaseController->renderInternal(‘C:\wamp\www\csr…’, Array, true)
#14 C:\wamp\www\yii\framework\web\CController.php(798): CBaseController->renderFile(‘C:\wamp\www\csr…’, Array, true)
#15 C:\wamp\www\yii\framework\web\CController.php(739): CController->renderPartial(‘create’, Array, true)
#16 C:\wamp\www\csrbdemo11\protected\controllers\LibraryController.php(92): CController->render(‘create’, Array)
#17 C:\wamp\www\yii\framework\web\actions\CInlineAction.php(50): LibraryController->actionCreate()
#18 C:\wamp\www\yii\framework\web\CController.php(300): CInlineAction->run()
#19 C:\wamp\www\yii\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#20 C:\wamp\www\yii\framework\web\filters\CFilter.php(41): CFilterChain->run()
#21 C:\wamp\www\yii\framework\web\CController.php(1049): CFilter->filter(Object(CFilterChain))
#22 C:\wamp\www\yii\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))
#23 C:\wamp\www\yii\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#24 C:\wamp\www\yii\framework\web\CController.php(283): CFilterChain->run()
#25 C:\wamp\www\yii\framework\web\CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#26 C:\wamp\www\yii\framework\web\CWebApplication.php(324): CController->run(‘create’)
#27 C:\wamp\www\yii\framework\web\CWebApplication.php(121): CWebApplication->runController(‘library/create’)
#28 C:\wamp\www\yii\framework\base\CApplication.php(135): CWebApplication->processRequest()
#29 C:\wamp\www\csrbdemo11\index.php(13): CApplication->run()
#30 {main}2010-12-17 12:09:54 Apache/2.2.11 (Win32) PHP/5.3.0 Yii Framework/1.1.4