TPhpErrorException

Description

[Runtime Notice] Declaration of NewsDetails::onInit() should be compatible with TControl::onInit($param) (@line 14 in file /home/riccolux.com/riccolux.com/protected/pages/NewsDetails.php).

Source File

/home/riccolux.com/library/prado/Web/Services/TPageService.php (467)

0456:         $path=$this->getBasePath().DIRECTORY_SEPARATOR.strtr($pagePath,'.',DIRECTORY_SEPARATOR);
0457:         $hasTemplateFile=is_file($path.self::PAGE_FILE_EXT);
0458:         $hasClassFile=is_file($path.Prado::CLASS_FILE_EXT);
0459: 
0460:         if(!$hasTemplateFile && !$hasClassFile)
0461:             throw new THttpException(404,'pageservice_page_unknown',$pagePath);
0462: 
0463:         if($hasClassFile)
0464:         {
0465:             $className=basename($path);
0466:             if(!class_exists($className,false))
0467: include_once($path.Prado::CLASS_FILE_EXT);
0468: } 0469: else 0470: { 0471: $className=$this->getBasePageClass(); 0472: Prado::using($className); 0473: if(($pos=strrpos($className,'.'))!==false) 0474: $className=substr($className,$pos+1); 0475: } 0476: 0477: if(!class_exists($className,false) || ($className!=='TPage' && !is_subclass_of($className,'TPage'))) 0478: throw new THttpException(404,'pageservice_page_unknown',$pagePath); 0479:

Stack Trace

#0 /home/riccolux.com/library/prado/Web/Services/TPageService.php(467): PradoBase::phpErrorHandler(2048, 'Declaration of ...', '/home/riccolux....', 14, Array)
#1 /home/riccolux.com/library/prado/Web/Services/TPageService.php(467): TPageService::createPage()
#2 /home/riccolux.com/library/prado/Web/Services/TPageService.php(443): TPageService->createPage('NewsDetails')
#3 /home/riccolux.com/library/prado/TApplication.php(1095): TPageService->run()
#4 /home/riccolux.com/library/prado/TApplication.php(382): TApplication->runService()
#5 /home/riccolux.com/riccolux.com/index.php(45): TApplication->run()
#6 {main}
2014-12-22 10:29 Apache/2.2.27 (CentOS) PRADO/3.1.10