Nice thing about Framework Builder could be better.
A nice thing about Framework Builder (FWB), to me, is the ability to add PHP code to the header of the template and have that included in all the pages the template is applied to.
That may be an unintended consequence, but I find it very useful. When in a template, that code only gets added to a blank page that the template is applied to and then if I need to alter that code, I have to do it in every instance throughout the site.
With FWB, that code is included in every page. You just need to be sure to start the content of a new page before applying the template and then the theme. One edit fixes all the pages.
So what could make that better. It would be GREAT if there was a comment tag, preference, or some syntax that would allow me to see that some of the header code can be above the header code in the page and some below.
In other words, on my admin template, if I include PHP code above the DOCTYPE, it is applied to every admin page, BUT...
If the code is an SA restrict page access behavior, it appears below any transactions created for the specific page which is a security risk since an external page could, for example, post to that script and cause an edit or other transaction.
Likewise, if I want a session variable to be set or available on every admin page, the code need to be the first thing.
It would be AWESOME if FWB would allow me to specify header code to be placed ABOVE the page's PHP code, and the rest of the template PHP code could go at the bottom (just before the DOCTYPE declaration)
If not that, I would like to have the template's header code ALWAYS go above the PHP code for the page. Generally, any PHP code in the header of the template is intended to be global and generally intended to go first.
This may not have been an intended use of FWB, but it is really helpful and would be a great thing to expand upon.
Thanx,
Steven