PHP notice

Undefined index: id

/home/rcherz/web/protected/controllers/competitionsActions/Detail.php(17)

05  * Date: 30.4.2013
06  * Time: 12:20
07  */
08 class Detail extends CAction
09 {
10 
11     public function run()
12     {
13 
14         // We need to get rid of this action ASAP!
15         ini_set('memory_limit', '1G');
16 
17         $id = $this->controller->actionParams['id'];
18 
19         if(!empty($this->controller->actionParams['noCache']))
20         {
21             CompetitionsCache::devalidateCacheForCompetitionId($id);
22         }
23 
24         /** @var Competitions $model */
25         $model = Competitions::model()->find(array(
26             'condition' => 't.id = :id',
27             'params' => array(
28                 ':id' => $id,
29 

Stack Trace

#2
+
 /home/rcherz/web/protected/components/Controller.php(322): CController->runAction(Detail)
317             // user is online
318             $uid_Uid = Yii::app()->user->id;
319             if ($uid_Uid != null) {
320                 Users::setOnlineUser($uid_Uid);
321             }
322             parent::runAction($actionID);
323         }
324         catch (Exception $e) {
325 
326             // CHttpException is not failure, this is standard error handling practice.
327             if ($e instanceof CHttpException) {
#13
+
 /home/rcherz/web/index.php(17): CApplication->run()
12 defined('YII_DEBUG') or define('YII_DEBUG',true);
13 
14 require_once($yii);
15 
16 require_once(dirname(__FILE__).'/protected/components/globals.php');
17 Yii::createWebApplication($config)->run();
18 
2024-03-29 02:35:32 nginx/1.18.0 Yii Framework/1.1.15