kenjis / codeigniter-ss-twig

A Simple and Secure Twig integration for CodeIgniter 3.x and 4.x
MIT License
168 stars 46 forks source link

Right way to add function like form_open() without | raw #40

Closed wichaksono closed 6 years ago

wichaksono commented 6 years ago

image

i try to add form_open_multipart(). so far i can added but i must use {{ form_open_multipart()|raw }} i wanna use without "raw"

kenjis commented 6 years ago

@wichaksono I don't know why you must use `raw'.

I use config/twig.php:

$config['functions_safe'] = [
    'form_open_multipart',
];

And I can use {{ form_open_multipart() }}.

wichaksono commented 6 years ago

Oh Thanks i can do this now