우선 이들 메소드는 컨트롤러에 라이브러리 섹션에 표시되지 않습니다.
귀하의 요구 사항에 대해 컨트롤러에서 새롭거나 동일한 방법을 만들 수 있습니다. save(), delete() cancel()
등과 같은 방법을 사용하면 Joomla의 기본 기능이 무시됩니다.
툴바 섹션에는 함수 이름도 언급 할 수 있습니다. 다른 당신이 here을 찾을 수 있습니다 수있는 몇 가지 도구 모음 단추를 인수 주문
JToolBarHelper::title('Yor custom component', 'head vmicon48'); //set title
JToolBarHelper::apply('saveConfig'); //when the apply button click its will call the saveConfig function the controller.
JToolBarHelper::cancel();
.
또한 폼의 컨트롤러가 두 개 이상인 경우 다음과 같이 컨트롤러를 언급 할 수 있습니다.
<input type="hidden" name="option" value="com_helloworld" />
<input type="hidden" name="view" value="yourview" />
<input type="hidden" name="task" value="my_controller_fun" />
<input type="hidden" value="your_controller_file_name" name="controller">
당신이 몇 가지 아이디어를 얻을 것이다 희망!
컨트롤러를 지정하는 더 짧은 방법은 컨트롤러를 작업에 추가하는 것입니다. task = controller.task –
친절한 도움에 감사드립니다. –