0

我的控制器位于以下文件夹 Controller/SiteAction/1700/Participate 中,我的视图文件位于 views/site/eventview。我应该在 eventview 中暗示导航到 Controller/SiteAction/1700/Participate 的按钮。我应该使用

<a class="participate" href="#" onclick="event.preventDefault();ajaxAction('<?=$this->createUrl('_____/p articipate/'.$data->id)?>',$('#real-form1').serialize() + '&NonFormValue=real-form')">

我应该在我的代码中写什么而不是__________/p?

4

1 回答 1

0

类似的方式: Yii::app()->createUrl("news/view",array("id"=>$data->primaryKey))

于 2016-09-20T05:20:20.950 回答