why my joomla controllers method is not getting executed -
i have ajax method sends data 1 of controller method inside of controller not getting fired. everytime first method getting executed on call. controller looks follows
class tieraerztecontrolleruploader extends jcontroller { /** * display task * * @return void */ function display($cachable = false) { require_once jpath_component_administrator.'/helpers/upload.php'; $upload_handler = new uploadhandler(); //this 1 going outputed die(); } public function locator(){ // wait here dump, not happening var_dump('test'); die(); echo '{"text":"john smith","id":"433"},{"text":"paul sparks","id":"434"}'; } }
i call controller following url
/administrator/index.php?option=com_tieraerzte&task=uploader.locator&tmpl=component&q=search
even if call above url result same
i think using wrong formated joomla url. try url formate,u may call controller
index.php?option=com_tieraerzte&view=uploader&tmpl=component&q=search
watch difference between url , url.
Comments
Post a Comment