Current implementation of Yii class is empty and it extends YiiBase class.
So if I want to override default implementation of some static methods (i.e. createComponent, t or createWebApplication) I may go two ways:
[list=1]
[*]Declare class with name different to Yii (f.e. YiiEx) inherited from YiiBase
[*]Declare my own Yii class which overrides methods and use it instead of standard Yii class.
[/list]
First aproach is not very convinient because there are written a lot of code uses Yii class name.
The second one works well but I am having problems using classes from yiilite.php. This file contains empty implemetation of default Yii class. When I am trying to use my own implementation of Yii class PHP fires an error which says that class is already defined.
For now I’ve delete default Yii class from yiilite.php to get my project working fine.
What could you advice me in this case?
P.S. What if I will generate my own yiilite.php during deployment process?
I see that. My question is am I able to override default Yii class? If answer is yes then what is the best way to do it (replace it with my own Yii class or inherit from it)
Regarding to Yii class documentation:
… so, I am allowed to define my own Yii class. Could somebody answer my original question?