Welcome Guest, Not a member yet? Register   Sign In
add CI4 view features like in CI3
#1

Hi Guys,

Anyone can help, i want to add template features in CI4 like extend, section, endSection, and renderSection to CI3, anyone can help ?
Reply
#2

(This post was last modified: 08-15-2022, 07:41 AM by iRedds.)

"Hey man don't get too attached to things... Learn to let go"(с) i.vanko
use CI4 =)
Reply
#3

If you're unable to move to CI4 with an existing project, then it's possible, but you'll have to put a little work in.

The main thing to understand is that $this within a view references the View class that is doing the actual rendering. So, in CI3, you'd need to extend the view class with a MY_View and add the features into that class.

You can look at CI 4's View class to see how it's done there.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB