I’m trying to catch up with this social open source movement. I forked an existing CodeIgniter Twig integration library and added some changes to work with CodeIgniter 2.x.
Also I found a way map any CodeIgniter function to Twig like so.
1 2 3 4 5 | |
Then in your Twig view call the base_url() function like this
1
| |
Head over to Github for more details.
In case you have no idea what I’m talking about. CodeIgniter is an excellent PHP framework and Twig is a Django style templating engine with inheritance for PHP.