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

(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.
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 kenjis - 02-21-2016, 09:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB