add CI4 view features like in CI3 |
Hi Guys,
Anyone can help, i want to add template features in CI4 like extend, section, endSection, and renderSection to CI3, anyone can help ?
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. |
Welcome Guest, Not a member yet? Register Sign In |