(02-21-2016, 06:15 PM)thocutt1020 Wrote: I think this is awesome library Kenji!
Is there any way in Codeigniter 3.x to render a twig template from within a twig?
For instance if I had inside my twig something like...
{{ render('season_controller/champions', {'season_id': season.season_id}) }}
It would call my controller and display the output inside the twig.
If I could do this it would be awesomely handy.
Is this possible?
That is calling another controller (from a contorller). CodeIgniter does not support it.
It is limitation (and design) of CodeIgniter.
To make it possible, first, you have to hack CodeIgniter. And I don't
recommend it unless you are an expert of CodeIgniter.