TWIG - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34) +--- Thread: TWIG (/showthread.php?tid=90492) |
TWIG - foxbille - 03-26-2024 Hello, I use twig for one of my app, but still encounter some difficulties, In the same form, when error on "fichier" field occurs, this, prints errors : PHP Code: {% if validation == false %} While this does not : PHP Code: {% if validation.hasError("fichier") %} RE: TWIG - kenjis - 03-26-2024 Use dump() and see what is the variable. See https://twig.symfony.com/doc/3.x/functions/dump.html RE: TWIG - foxbille - 03-29-2024 Shame on me! there was an ugly $validation = false; in my controller code. i'm tired. Thanks for reply. |