Auf meinem Server läuft alles wunderbar in yii 1.1 Auf meinem PC mit yii1.1.2 erhalte ich folgenden Fehler.
Aber ich habe keine Ahnung was das sein soll?!
Use of undefined constant system_last - assumed ‘system_last’
PHP Error Beschreibung
Use of undefined constant system_last - assumed ‘system_last’
Quelldatei
Quelldatei
/var/www/xxxxxx/protected/models/system_last.php(55)
00043: public function add( $sValue )
00044: {
00045: $oSystem_last = new system_last;
00046: $oSystem_last->baseform = $sValue;
00047: $oSystem_last->created = date("Y-m-d H:i:s");
00048: $oSystem_last->ip = CHttpRequest::getUserHostAddress();
00049: $oSystem_last->save();
00050: }
00051:
00052:
00053: public function getLast( $dLimit = 15 )
00054: {
00055: $oLast = system_last;
00056: $oCriteria = new CDbCriteria;
00057: $oCriteria->limit = $dLimit;
00058: $oCriteria->order = "id DESC";
00059: $oLasts = system_last::model()->findAll( $oCriteria );
00060:
00061: return $oLasts;
00062: }
00063: }
Stack trace:
#0 /var/www/yii/framework/web/CBaseController.php(88): BoxLast->renderInternal()
#1 /var/www/yii/framework/web/widgets/CWidget.php(214): BoxLast->renderFile()
#2 /var/www/xyz/protected/components/BoxLast.php(<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='8)' />: BoxLast->render()
#3 /var/www/xyz/protected/components/Portlet.php(21): BoxLast->renderContent()
#4 /var/www/yii/framework/web/CBaseController.php(174): BoxLast->run()
#5 /var/www/xyz/protected/views/site/index.php(10): SiteController->widget()
#6 /var/www/yii/framework/web/CBaseController.php(119): require()
#7 /var/www/yii/framework/web/CBaseController.php(88): SiteController->renderInternal()
#8 /var/www/yii/framework/web/CController.php(748): SiteController->renderFile()
#9 /var/www/yii/framework/web/CController.php(687): SiteController->renderPartial()
#10 /var/www/xyz/protected/controllers/SiteController.php(23):SiteController->render()
#11 /var/www/yii/framework/web/actions/CInlineAction.php(32):SiteController->actionIndex()
#12 /var/www/yii/framework/web/CController.php(300): CInlineAction->run()
#13 /var/www/yii/framework/web/CController.php(278): SiteController->runAction()
#14 /var/www/yii/framework/web/CController.php(257): SiteController->runActionWithFilters()
#15 /var/www/yii/framework/web/CWebApplication.php(320): SiteController->run()
#16 /var/www/yii/framework/web/CWebApplication.php(120): CWebApplication->runController()
#17 /var/www/yii/framework/base/CApplication.php(135): CWebApplication->processRequest()
#18 /var/www/xyz/index.php(13): CWebApplication->run() REQUEST_URI=/xyz/