A
A
Aptixx2015-03-18 17:27:44
PHP
Aptixx, 2015-03-18 17:27:44

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

3 answer(s)
Антон, 2015-03-18
@sHinE

Отладчик?
Ну или habrahabr.ru/post/177709 например.

Александр Зачиналов, 2015-03-19
@SanDiesel

www.pontin.ru/technical/web/joomla/joomla-debuger

Александр Клеошин, 2015-03-19
@mxSandr

Попробуйте

/* Joomla code */

print_r($array);
exit;

/* Joomla code */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question