Hello,
In a scenario I need to access the result_list of an xcrud instance. I've tried using:
But I get an error message:
Fatal error: Uncaught Error: Cannot access protected property Xcrud::$result_list
I simply need to loop over the array of array to create a CSV string of some rows column matching a condition.
Any idea how to do this?
The docs say:
so I don't really understand why it doesn't work in my script.
Thanks a lot
In a scenario I need to access the result_list of an xcrud instance. I've tried using:
PHP:
$xcrud_dyn = Xcrud::get_instance();
// ...
// later on:
$array_of_results_array = $xcrud_dyn->result_list;
foreach ($array_of_results_array as $single_result_array) {
// do stuff
}
But I get an error message:
Fatal error: Uncaught Error: Cannot access protected property Xcrud::$result_list
I simply need to loop over the array of array to create a CSV string of some rows column matching a condition.
Any idea how to do this?
The docs say:
$this->result_list
Array of arrays with full result from database (grid). You can use it to create your own grid rendering.
so I don't really understand why it doesn't work in my script.
Thanks a lot