Refer to my last post, I have figured out that Joomla call the controller with the POST data task=X.Y
, however I found that if I publish an item (task items.publish
) or unpublish an item (task items.unpublish
), they also calling the controller JControllerAdmin
of the function publish
but not the function of publish
and unpublish
.
I know that Joomla may convert the POST data task items.unpublish
to call the publish
function instead of unpublish
, but anyone know where is the code of converting this POST data?
p.s.: I have added the code exit();
at the beginning of the function publish
under controller JControllerAdmin
and testing for publish or unpublish an item, the result is same --> blank page. So I wondering how Joomla implement these function.
Joomla's Default function for publish and unpublished are written in this file
libraries\joomla\application\component\controlleradmin.php
But its better to avoid editing on that and override those function if you require customization on it in your controller file.
Hope its helps..
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다