Welcome Guest, Not a member yet? Register   Sign In
Views/Rendering Variable Issues?
#8

(10-12-2016, 12:55 PM)cartalot Wrote:
(10-11-2016, 09:35 PM)kilishan Wrote: Since this goes against the way people are used to using it, this might be a good prospect for a config setting, too...

I was "lectured" on this forum and in PM about this issue. I was urging that it stay the same. But since then my attitude has changed. Its just templates - not every view file - and its very quick to add those few lines of code to some templates. I think every decision about CI 4 should be based on: "is this the best way to build a modern PHP 7 framework?"

It's already been added. https://github.com/bcit-ci/CodeIgniter4/...4c9c4e3f5f

I agree though,  in a template engine, it would be trivial to set saveData to true every time the template engine is called, but I do understand (and agree) with why the default behavior was changed (data leaking, etc), but it's a problem for templates with multiple view() calls. 

I don't know this is a "best way to build a modern PHP 7 framework" decision though, it more comes down to best practices and security interpretation IMO.  Regardless of how this issue settles out, the core team is giving us the options we need to use it and it's appreciated.
Reply


Messages In This Thread
Views/Rendering Variable Issues? - by enlivenapp - 10-11-2016, 11:18 AM
RE: Views/Rendering Variable Issues? - by enlivenapp - 10-12-2016, 01:11 PM
RE: Views/Rendering Variable Issues? - by sv3tli0 - 10-11-2016, 11:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB