I am learning the Yii 2.0 and I would like to have a common class/Controller which init method should be called before going for specific controller action.
In yii 1.1, I am adding a Controller.php in Components and it was extended by all other Controller.
, just above the definition of any class that use it.
You may check PHP namespace features and existing Yii 2 example code (official yii2* extensions and templates), so long as namespaces are everywhere today.