一个contoller里怎么调用另一个controller里的action,Acontoller调用SiteContoller的actionShow($id)
$control=Yii::app()->runController('site/show/id/2');
或者不带参数
$control=Yii::app()->runController('site/show');
一个contoller里怎么调用另一个controller里的action,Acontoller调用SiteContoller的actionShow($id)
$control=Yii::app()->runController('site/show/id/2');
或者不带参数
$control=Yii::app()->runController('site/show');
You must be logged in to post a comment.
近期评论