[Yii Framework] 如何获取当前controller的名称?

下面语句就可以获取当前控制器的名称了!
Yii::app()->controller->id

posted @ 2010-04-21 11:56  DavidHHuan  阅读(743)  评论(0编辑  收藏  举报