Problem With Yii Event On Linux (Window With Xampp Is Ok)

First of all, hello to everyone and apologies for my poor English!

I run my source code on window with XAMPP , it’s ok but when I upload it to hosting (Linux),it has a problem with Event (onBeginRequest vs OnEndRequest)

In index.php




// ....


require_once($yii);

require_once($globals);


$app = Yii::createWebApplication($config);

app()->onBeginRequest = array('FBeginRequest','setThemeFrontend');

app()->onBeginRequest = array('FBeginRequest','setUrlSuffix');

$app->run();



In config.php




    'onBeginRequest'=>array('FBeginRequest','settingOnBeginRequest'),


    'onEndRequest'=>array('FBeginRequest','settingOnEndRequest'),



I found error in runtime/application.log

When I remove all onBeginRequest in index.php and config.php --> it’s ok

I fixed it , thanks all who looked at it!