TPhpErrorException

Description

[Unknown Error] Non-static method Utilities::getCulture() should not be called statically (@line 10 in file /sklepynarciarskie.pro/protected/Pages/Main.php).

Source File

/sklepynarciarskie.pro/protected/Pages/Main.php (10)

0001: <?php
0002: 
0003: class Main extends TPage
0004: {
0005:     
0006:     public $_pageID = 4;
0007:     
0008:     public function __construct() {
0009:         parent::__construct();
0010: $lang = Utilities::getCulture();
0011: $this->getApplication()->getGlobalization()->setCulture($lang); //Ustawienie jezyka 0012: $this->getApplication()->getGlobalization()->Charset= "utf-8"; 0013: } 0014: 0015: public function onPreRender($param) 0016: { 0017: parent::onPreRender($param); 0018: 0019: if(!$this->isCallback) 0020: { 0021: parent::onPreRender($param); 0022: }

Stack Trace

#0 /sklepynarciarskie.pro/protected/Pages/Main.php(10): PradoBase::phpErrorHandler(8192, 'Non-static meth...', '/sklepynarciars...', 10, Array)
#1 /sklepynarciarskie.pro/framework_3_1_10/Web/Services/TPageService.php(480): Main->__construct()
#2 /sklepynarciarskie.pro/framework_3_1_10/Web/Services/TPageService.php(443): TPageService->createPage('Main')
#3 /sklepynarciarskie.pro/framework_3_1_10/TApplication.php(1095): TPageService->run()
#4 /sklepynarciarskie.pro/framework_3_1_10/TApplication.php(382): TApplication->runService()
#5 /sklepynarciarskie.pro/index.php(37): TApplication->run()
#6 {main}
2017-03-29 15:07 IdeaWebServer/0.82 (like Apache) PRADO/3.1.10