When using yiic to create web applications, we have got SiteController and some views.
I've just looked at the about view for site views and very surprised because about.php says
/* @var $this SiteController */
My questions:
1. How $this is emplimented and is an instance of SiteController??
2. I think for each view, there should be an corresponding action inside controller. In this case for about view, there should be actionAbout inside SiteController. But I can't find actionAbout there?
The url in Firefox's address bar like this: localhost/mywebapp/index.php?r=site/page&view=about. Is there something to say about this url?
Hope someone give me an understandable explanation for these questions.
Thank you for reading my post!
Best regard!
Hung

Help













