Closed kenjis closed 8 years ago
This PR enables to add user helper functions.
application/config/twig.php
$config['functions'] = ['my_func'];
or
$config = [ 'functions' => ['my_func'], ]; $this->load->library('twig', $config);
@MJTheOne I changed the config key from functions_asis to just functions.
functions_asis
functions
I was thinking the need for adding user functions. Thank you for your PR. I'll test this PR more, and merge this PR in a some days.
This PR enables to add user helper functions.
application/config/twig.php
or