CException

No feed items configured

D:\wwwroot\www.thaihed.com\hed.go.th\hed\protected\extensions\feed\EFeed.php(418)

406             }
407             echo "</rdf:Seq>" . PHP_EOL . "</items>" . PHP_EOL;
408         }
409     }
410     /**
411      * 
412      * Prints feed items
413      * @throws CException
414      */
415     private function renderItems()
416     {    
417         if(null === $this->feedElements->itemAt('items'))
418             throw new CException( Yii::t('EFeed', 'No feed items configured') );
419             
420         foreach ($this->feedElements->itemAt('items') as $item)
421             echo $item->getNode();
422     }
423     /**
424      * 
425      * Creates a single node as xml format
426      * 
427      * @access   private
428      * @param    string  name of the tag
429      * @param    mixed   tag value as string or array of nested tags in 'tagName' => 'tagValue' format
430      * @param    array   Attributes(if any) in 'attrName' => 'attrValue' format

Stack Trace

#0
+
 D:\wwwroot\www.thaihed.com\hed.go.th\hed\protected\extensions\feed\EFeed.php(296): EFeed->renderItems()
291      */
292     public function generateFeed(){
293         header("Content-type: text/xml");
294         $this->renderHead();
295         $this->renderChannels();
296         $this->renderItems();
297         $this->renderBottom();
298     }
299     /**
300      * 
301      * Prints the xml and rss namespace
#1
+
 D:\wwwroot\www.thaihed.com\hed.go.th\hed\protected\controllers\EventsController.php(29): EFeed->generateFeed()
24             $item->date = $events->create_date;
25             //$item->description = $events->news_short_detail_th;
26             $feed->addItem($item);
27         }
28 
29         $feed->generateFeed();
30 
31         Yii::app()->end();
32     }
33 
34 
#9
+
 D:\wwwroot\www.thaihed.com\hed.go.th\hed\index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',1);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-19 06:09:55 Apache/2.2.4 (Win32) PHP/5.2.4 Yii Framework/1.1.16