I have a menu item in joomla (virtuemart) with url
index.php?option=com_virtuemart&view=manufacturer
Now, in view.html.php of manufacturer view I added a function called jump as
function jump(){echo "hello";}
I added task=jump in the url so that it becomes
index.php?option=com_virtuemart&view=manufacturer&task=jump
But even now the default display function executes and not the jump function. Why? Please help me. Thanks
The task in this url
index.php?option=com_virtuemart&view=manufacturer&task=jumpwill execute thejumpfunction of default controller.So if there is any functionjumpin thecontroller.phpwill execute not the jump function of view.If you want to execute jump of any other controller use this structuretask=controllername.tasknameRead More – http://docs.joomla.org/JController_and_its_subclass_usage_overview
https://groups.google.com/forum/?fromgroups=#!topic/joomla-dev-general/ZkNhbX2x1Es
http://docs.joomla.org/How_Joomla_pieces_work_together
Hope this is clear.