I've a trigger on my frontend that requires an action. I've started from the businessLogic template but I'm getting a 404 and can't find why.
My function
public function actionExampleAjax()
{
// Stuff
}
How I call it
$.post('/actions/businessLogic/actionExampleAjax', data, function(response, textStatus, jqXHR) {
// Stuff
});
The server response ( 404):
The system is unable to find the requested action "actionExampleAjax".
The action trigger is set to:
'actionTrigger' => 'actions'
The same approach works fine with a form submission, but I don't want to use a form in this case.
Any suggestion?