TPhpErrorException

Description

[Runtime Notice] Non-static method TApplication::getSession() should not be called statically, assuming $this from incompatible context (@line 12 in file /home/vu000853/public_html/protected/Common/cecPage.php).

Source File

/home/vu000853/public_html/protected/Common/cecPage.php (12)

0001: <?php
0002: 
0003: class cecPage extends TPage
0004: {
0005:     public $_session;
0006:     
0007:     public function onPreInit($param)
0008:     {
0009:         parent::onPreInit($param);
0010:         $this->Theme=$this->Application->Parameters['ThemeName'];
0011:         
0012: $this->_session = TApplication::getSession();
0013: } 0014: 0015: public function gotoDefaultPage() 0016: { 0017: $this->gotoPage($this->Service->DefaultPage); 0018: } 0019: 0020: public function gotoPage($pagePath,$getParameters=null) 0021: { 0022: $this->Response->redirect($this->Service->constructUrl($pagePath,$getParameters,false)); 0023: } 0024:

Stack Trace

#0 /home/vu000853/public_html/protected/Common/cecPage.php(12): PradoBase::phpErrorHandler(2048, 'Non-static meth...', '/home/vu000853/...', 12, Array)
#1 /home/vu000853/public_html/PradoFramework/Web/UI/TPage.php(199): cecPage->onPreInit(NULL)
#2 /home/vu000853/public_html/PradoFramework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#3 /home/vu000853/public_html/PradoFramework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#4 /home/vu000853/public_html/PradoFramework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#5 /home/vu000853/public_html/PradoFramework/TApplication.php(1066): TPageService->run()
#6 /home/vu000853/public_html/PradoFramework/TApplication.php(376): TApplication->runService()
#7 /home/vu000853/public_html/index.php(21): TApplication->run()
#8 {main}
2016-02-07 18:28 Apache PRADO/3.1.2