2016-09-20 2 views
0

내 컨트롤러는 Controller/SiteAction/1700/Participate 폴더에 있으며 내보기 파일은/site/eventview보기에 있습니다. Controller/SiteAction/1700/Participate로 이동하는 eventview 내부 버튼을 구현해야합니다. 그리고yii1에서 creare URL을 사용하는 방법

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

내가 내 코드 대신 __________/P 어떻게 작성해야 사용해야합니까? 유사한 방식으로

답변

0

: YII :: 응용 프로그램() -> createUrl ("뉴스 /보기", 배열 ("ID"=> $ 데이터 -> 기본 키))