Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Simple and Secure Twig
#30

Hello,
In doc it is written :
You can override the default configuration:


PHP Code:
$config = [
   'paths' => ['/path/to/twig/templates'VIEWPATH],
   'cache' => '/path/to/twig/cache',
];
$this->load->library('twig'$config); 


That is clear, but I load twig in autoload file, as :

PHP Code:
$autoload['libraries'] = array('ion_auth''twig' ); 


How to overwrite config in this case?

  Thanks!
Reply


Messages In This Thread
CodeIgniter Simple and Secure Twig - by kenjis - 05-24-2015, 07:06 PM
RE: CodeIgniter Simple and Secure Twig - by mstdmstd - 03-27-2016, 04:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB