I have an addon with a form, getting data, do something in
pub/controller/index
public function actionIncoming(ParameterBag $params)
{
$input = $this->filter([
'lala' => 'str'
]);
Now i want to have a cron-job do the same, but with data from a table instead an input.
I try
$params = [
'lala'=> "something",
];
$result = \Example\Pub\Controller\Index::actionIncoming($params);
and get
TypeError: Argument 1 passed to Example\Pub\Controller\Index::actionIncoming() must be an instance of XF\Mvc\ParameterBag
What i have to do now with $params to make XF happy, please?
pub/controller/index
public function actionIncoming(ParameterBag $params)
{
$input = $this->filter([
'lala' => 'str'
]);
Now i want to have a cron-job do the same, but with data from a table instead an input.
I try
$params = [
'lala'=> "something",
];
$result = \Example\Pub\Controller\Index::actionIncoming($params);
and get
TypeError: Argument 1 passed to Example\Pub\Controller\Index::actionIncoming() must be an instance of XF\Mvc\ParameterBag
What i have to do now with $params to make XF happy, please?
Last edited: