0

My controller is located in following folder Controller/SiteAction/1700/Participate and my view file is located in views/site/eventview. I should impliment the button inside eventview that navigates to Controller/SiteAction/1700/Participate. And I should use

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

What should i write instead of __________/p in my code?

phpdev
  • 511
  • 4
  • 22

1 Answers1

0

In Similar manner: Yii::app()->createUrl("news/view",array("id"=>$data->primaryKey))

Mahi
  • 110
  • 2