Please Log in or Create an account to join the conversation.
Yes, use $input as noted in the Code parameter description. Example as follows.But has Cb the same functionalities as joomla to get the tasks that are sent by the js file and how ??
Please Log in or Create an account to join the conversation.
I've no idea why you're using the following even in Joomla.
$content = trim(file_get_contents("php://input"));
$receivedData = json_decode($content, true);
You had access to $app->input to get request data.
Please Log in or Create an account to join the conversation.
They don't need to know CB or Joomla. It's all documented (and for what isn't they can just ask here how to do X in regards to CB) and has autocomplete. Any PHP dev with an IDE should be able to see that. You'd just need a quality developer experienced with PHP that's capable of learning, but don't expect much from a PHP developer if you're paying them less than $50 an hour.That's written by the dev that I hired for this job.... very difficult to find experts who knows CB... they write joomla only and I have to adapt each time
Wish I could find a good dev team expert in CB and plugins...
Either should work fine. CB Auto Actions will force a JSON header when using JSON output.if I add &format=raw at the end of the autoaction will it output a correct json or do I have to change it for &format=json at the end ?
That's because you're converting the post body to a JSON string in your fetch. That explains why the PHP was so goofy accessing the request data. I've no idea what sendObject is in your JS, but it should either be a FormData object or a JS object. Example as follows.It seems like the js script sends requests looking like
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.