HeY!
I just want to know it's possible to load vmshipment plugin called asd with url like that:
index.php?option=com_virtuemart&task=asd&view=function_in_asd_plugin&var1=something&var2=something_else
I want make ajax load for my plugin, but i have this plugin load problem.
scenario:
if i select something in first selection menu, then appear other and i can select there some values.
Thanks!
yes, the controller is plugin
To ajaxify your plugin you must always use same "entry"
for eg.
JURI::root().'index.php?option=com_virtuemart&view=plugin&type=vmshipment&name=YOURPLUGINNAME&my_id=10&myparam=test ......
explain :
type=vmshipment : because is shipment
name=YOURPLUGINNAME : because you want call your plugin
you must include in your plugin a function
function plgVmOnSelfCallFE($type, $name, &$render) {
if ($name != $this->_name || $type != 'vmshipment') return false;
// my nice code here
$render="mytext to render";
}
plgVmOnSelfCallFE is in FE
plgVmOnSelfCallBE is in BE
if you want it in json format, you must simply add format=json in the url(or in post);
Fatal error: Class 'VirtuemartControllerPlugin' not found in ...../virtuemart.php line 70:
Line 70:
$_class = 'VirtuemartController'.ucfirst($_controller);
where i can find this class?