Calling block action with arguments
Permalink
Hi.
Does anyone know how to call a block controller action with arguments?
Using '$this->action('myFunction')' calls the controller function 'action_myFunction(){}'. But I need to transfer arguments to the function. Doing '$this->action('myFunction','argument')' simply ads 'argument' to the end of the generated url.
Any suggestions?
/H
Does anyone know how to call a block controller action with arguments?
Using '$this->action('myFunction')' calls the controller function 'action_myFunction(){}'. But I need to transfer arguments to the function. Doing '$this->action('myFunction','argument')' simply ads 'argument' to the end of the generated url.
Any suggestions?
/H
In the controller it needs to be:
the argument added to the url is passed on to the function.