How does yii2?

Understand how does yii2. In the controller directory there is a file SiteController.php I understand it is the main controller that manages the models and vyuha (how it works is still not entirely understood, because little is familiar with Paterno MVC and this is my first framework), so that's why in this file SiteController.php there is a class "SiteController" which inherits from "Controller", except class "SiteController" is not the main? Why it inherits the "Controller" ? And I can't find the class "Controller" in any of the file( revised repeatedly all directories and file). Maybe someone will advise, in General, and in General work with it and mvc. ?
September 19th 19 at 12:51
4 answers
September 19th 19 at 12:53
Can refer to the documentation. You are asking basic things that there are answers.
Well, even you do not know OOP, time to ask questions about inheritance.
You are right. But for me it was not clear why he inherited and not declared. - Anabel.Dac commented on September 19th 19 at 12:56
September 19th 19 at 12:55
The Controller class is defined in the base framework
Thank you. - Anabel.Dac commented on September 19th 19 at 12:58
September 19th 19 at 12:57
Stop already programmed in the editor, if the life associated with programming. Of course, there are good editors with good plug-in ecosystem, but the IDE usually everything you need comes out of the box, which is a plus for a beginner.

Look at PHPStorm
I agree. PhpStorm rocks. - Anabel.Dac commented on September 19th 19 at 13:00
September 19th 19 at 12:59
Thanks already figured out, reviewed documentation became clear. - Anabel.Dac commented on September 19th 19 at 13:02

Find more questions by tags YiiPHP