recher1114 2011-09-28 13:45:53 3084次浏览 3条回复 0 0 0
class PostController extends CController
{
    public function actionCreate(array $categories)
    {
        // Yii will make sure $categories be an array
    }
}

请问这种接收数组格式的参数,我在传递URL时候。URL应该怎么弄,才能接收到参数?

//我这样写好像不行 $url = Yii::app()->createUrl('post/create', array('categorys' => $array);

您需要登录后才可以回复。登录 | 立即注册