![]() |
(04-14-2023, 02:43 AM)foxbille Wrote: But then, using twig, the flow is still not good, code of default_full.twig is displayed as if htmlentities() was used Try raw: https://twig.symfony.com/doc/3.x/filters/raw.html (04-14-2023, 03:26 AM)kenjis Wrote:(04-14-2023, 02:43 AM)foxbille Wrote: But then, using twig, the flow is still not good, code of default_full.twig is displayed as if htmlentities() was used Hi, Thanks, but doesn't work either. [code] </form> </div> {% pager.setSurroundCount(2) %} <div class="linklist-paging"> <div class="paging pure-g"> <div class="linklist-pages pure-u-1-3"> {% if pager.hasPrevious() %} <a href="{{pager.getFirst()}}" aria-label="{{ lang('Pager.first') }}"> <span aria-hidden="true"> <i class="fa fa-angle-double-left px-2"></i></span> [/php]
You paste code helper('form') in controller?
Thanks for replay
I might not have understand your question anyway, here is my code In controller PHP Code: use \Kenjis\CI4Twig\Twig; PHP Code: {% extends "default.twig" %}
Fixed?
public function add() { helper('form'); .... }
Try to load the helper before `$this->twig = new Twig(['functions' => ['dateSlash']]);`
|
Welcome Guest, Not a member yet? Register Sign In |