By default, we can put the static pages in protected/views/site/pages.
For example, I put the static "about.php" in protected/views/site/pages.
The way of Yii to get the current name when to use in menu.
代码
if(
!empty(Yii::app()->controller->action->requestedView)
&& "howtowork" == strtolower(Yii::app()->controller->action->requestedView))
echo 'class="active"';