Answer the question
In order to leave comments, you need to log in
How to see the print_r of an array passed to a model in joomla 3?
In the component, an array of data is passed from the form to the controller, then to the model. As a result, the function is executed incorrectly, how can you make a print_r request from the controller or model to see what data is coming and whether it is correct. If you simply write this function in the controller or model, then the result of its execution is not displayed on the page, as if it had not been executed. how and where to "catch" this array?
Answer the question
In order to leave comments, you need to log in
Попробуйте
/* Joomla code */
print_r($array);
exit;
/* Joomla code */
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question