TConfigurationException

Description

A THead control is needed in page template in order to render CSS and js in the HTML head section.

Source File

/home/.irasan/remindme/remindremind.com/prado31/framework/Web/UI/TPage.php (664)

0653:                 $cs->registerHeadScriptFile($url,$url);
0654:         }
0655:         if($this->_styleSheet instanceof ITheme)
0656:         {
0657:             foreach($this->_styleSheet->getStyleSheetFiles() as $url)
0658:                 $cs->registerStyleSheetFile($url,$url,$this->getCssMediaType($url));
0659:             foreach($this->_styleSheet->getJavaScriptFiles() as $url)
0660:                 $cs->registerHeadScriptFile($url,$url);
0661:         }
0662: 
0663:         if($cs->getRequiresHead() && $this->getHead()===null)
0664: throw new TConfigurationException('page_head_required');
0665: } 0666: 0667: /** 0668: * Determines the media type of the CSS file. 0669: * The media type is determined according to the following file name pattern: 0670: * xxx.media-type.extension 0671: * For example, 'mystyle.print.css' means its media type is 'print'. 0672: * @param string CSS URL 0673: * @return string media type of the CSS file 0674: */ 0675: private function getCssMediaType($url) 0676: {

Stack Trace

#0 /home/.irasan/remindme/remindremind.com/prado31/framework/Web/UI/TPage.php(217): TPage->onPreRenderComplete(NULL)
#1 /home/.irasan/remindme/remindremind.com/prado31/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#2 /home/.irasan/remindme/remindremind.com/prado31/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#3 /home/.irasan/remindme/remindremind.com/prado31/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#4 /home/.irasan/remindme/remindremind.com/prado31/framework/TApplication.php(1066): TPageService->run()
#5 /home/.irasan/remindme/remindremind.com/prado31/framework/TApplication.php(376): TApplication->runService()
#6 /home/.irasan/remindme/remindremind.com/prado31/demos/lcssmenu/index.php(16): TApplication->run()
#7 {main}
2008-12-04 10:13 Apache/2.0.61 (Unix) PHP/4.4.7 mod_ssl/2.0.61 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2 PRADO/3.1.1