Welcome Guest, Not a member yet? Register   Sign In
pre_render() event

That's an interesting suggestion. I have a feeling this might have been prompted by watching my failed attempt to do something similar in the repo for validation errors. Smile I was having a brain-fart at that moment, though, and simply using session('key') worked out pretty well, though might not so well in the parser.

I can also see this being very handy for other site-wide things you might want to make available, like things for the HTML meta tags, etc.

The biggest problem I can see is the event would be ran for every nested view, also, and quickly become a performance hit. I'll have to think on a good solution for this, but it's definitely a good idea.

Messages In This Thread
pre_render() event - by dannywebdev - 11-26-2017, 07:18 PM
RE: pre_render() event - by PaulD - 11-27-2017, 03:04 AM
RE: pre_render() event - by kilishan - 11-27-2017, 11:03 AM
RE: pre_render() event - by InsiteFX - 11-28-2017, 04:54 AM
RE: pre_render() event - by dannywebdev - 12-01-2017, 10:57 PM

Theme © iAndrew 2016 - Forum software by © MyBB