Aktionen
Fehler #237
geschlossenanlegen eines est mit gruppe
Beginn:
06.05.2013
Abgabedatum:
% erledigt:
0%
Geschätzter Aufwand:
Beschreibung
PHP notice Undefined index: groups E:\xampp\htdocs\est\trunk\src\protected\controllers\DateController.php(103) 091 /** 092 * Creates a new model. 093 * If creation is successful, the browser will be redirected to the 'view' page. 094 */ 095 public function actionCreate() { 096 $model = new Date; 097 $a_disabled = ''; 098 $timeLabel = ''; 099 $dateLabel = ''; 100 if (isset($_POST['Date'])) { 101 $model->attributes = $_POST['Date']; 102 if (Yii::app()->params['allowGroups']) { 103 $model->groups = $_POST['Date']['groups']; 104 } 105 if ($model->save()) { 106 $this->redirect(array('view', 'id' => $model->id)); 107 } 108 } 109 $this->render('create', array( 110 'model' => $model, 111 'a_disabled' => $a_disabled, 112 'timeLabel' => $timeLabel, 113 'dateLabel' => $dateLabel, 114 )); 115 } Stack Trace #0 + E:\xampp\htdocs\est\trunk\src\framework\web\actions\CInlineAction.php(49): DateController->actionCreate() #1 + E:\xampp\htdocs\est\trunk\src\framework\web\CController.php(308): CInlineAction->runWithParams(array("r" => "date/create")) #2 + E:\xampp\htdocs\est\trunk\src\framework\web\filters\CFilterChain.php(133): CController->runAction(CInlineAction) #3 + E:\xampp\htdocs\est\trunk\src\framework\web\filters\CFilter.php(40): CFilterChain->run() #4 + E:\xampp\htdocs\est\trunk\src\framework\web\CController.php(1145): CFilter->filter(CFilterChain) #5 + E:\xampp\htdocs\est\trunk\src\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) #6 + E:\xampp\htdocs\est\trunk\src\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(CFilterChain) #7 + E:\xampp\htdocs\est\trunk\src\framework\web\CController.php(291): CFilterChain->run() #8 + E:\xampp\htdocs\est\trunk\src\framework\web\CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl")) #9 + E:\xampp\htdocs\est\trunk\src\framework\web\CWebApplication.php(282): CController->run("create") #10 + E:\xampp\htdocs\est\trunk\src\framework\web\CWebApplication.php(141): CWebApplication->runController("date/create") #11 + E:\xampp\htdocs\est\trunk\src\framework\base\CApplication.php(169): CWebApplication->processRequest() #12 – E:\xampp\htdocs\est\trunk\src\index.php(30): CApplication->run() 25 defined('YII_DEBUG') or define('YII_DEBUG', true); 26 // specify how many levels of call stack should be shown in each log message 27 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 28 29 require_once($yii); 30 Yii::createWebApplication($config)->run();
Aktionen