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

// ....



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

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

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


In config.php



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!