![]() |
error returning a view with $data from ajax - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: error returning a view with $data from ajax (/showthread.php?tid=76586) |
error returning a view with $data from ajax - Juan Fajardo - 05-29-2020 I have got a error 500 when from a controller called from a ajax function if in the controller return a view with params. the js/ajax call: Code: function insertFotosNew(url,id){ the controller code: PHP Code: namespace App\Controllers\Administracion\Propiedades; The same error if echo the view: PHP Code: echo view('Administracion/Propiedades/propiedades_form_fotos', $data); If only echo (or return) the view without %data, no occurs the error 500. This in CI3 not produces this error. Can help? Tanks RE: error returning a view with $data from ajax - Juan Fajardo - 05-29-2020 ** Close this, please. I found the problem. *** RE: error returning a view with $data from ajax - jreklund - 05-29-2020 And the problem where? So others can learn from it. :-) |