Welcome Guest, Not a member yet? Register   Sign In
Templates in CI version 4
#1

Hey guys

First, I'm not sure if 'template' is the technical term for this. In CI version 3, I created a MY_Loader file in the core folder and I used that to load the Header, View, and Footer with just one line of code:

MY_Loader.php
[Image: XwHIGiA.png]

Then inside the controllers I'd use it like this:

Controller
[Image: EOEmf5v.png]

How do I do this with CI 4? So far I've been loading the views for the Header, View, and Footer files individually in each instance, which is not ideal if I want to switch templates (from v1 to v2, for example).
Reply


Messages In This Thread
Templates in CI version 4 - by zye - 11-23-2019, 10:24 AM
RE: Templates in CI version 4 - by InsiteFX - 11-24-2019, 04:48 AM
RE: Templates in CI version 4 - by dave friend - 11-24-2019, 07:14 AM
RE: Templates in CI version 4 - by zye - 11-24-2019, 05:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB