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

We opted to be a little more secure in the handling of data this time around and to NOT save data between different view() calls by default, but require it to be explicitly passed. This is a change from previous versions. You should be able to pass [b]saveData[\b] through with a value of [b]true[\b] in the options array to have it work like it did previously, though.

Code:
echo view('templates/layouts/default', $data, ['saveData' => true]);
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB