Is it possible to pass arguments to controller action methods, like
public function someAction($myArgument) { ... }
Or is using JInput
the only way?
Edit: Using a URL like option=com_mycomponent&task=mycontroller.someaction&myargument=asd
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.
Sign up to join this communityNo, there isn't a way to pass arguments into methods. Specifically, this has to do with how JControllerLegacy::execute()
routes the request. So you're left with using the request or session to fetch your needed data.
callBindedFunction
at github.com/joomplace/JooYii/blob/master/Helper.php