[Yii Framework] How to get the current static page name?

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.

&& "howtowork" == strtolower(Yii::app()->controller->action->requestedView))
echo 'class="active"';


posted @ 2010-07-21 22:49 DavidHHuan 阅读(...) 评论(...) 编辑 收藏