摘要: Yii里获取当前controller和action的id 在控制器里$name = $this->getId(); // controller$name = $action->id; // action在视图里$name = $this->id = Yii::app()->controller->id; // controller$name = $this->action->id = $this->getAction()->getId(); // action 阅读全文
posted @ 2013-07-29 11:02 jami918 阅读(892) 评论(0) 推荐(0)