-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid stuff before <!DOCTYPE> #9891
base: master
Are you sure you want to change the base?
Conversation
This change makes sure the page component are output in proper order: JS includes in <head>, and page content inside <body>. Nothing should appear before <!DOCTYPE> If accepted, the same change should be done to most files in the view directory.
thanks, I agree with the users.php but I am not container_fluid_footer.php and view/container_fluid_header.php |
I changed it to just include the HTML bits instead of using php to echo them. Was this your concern, or do you want to get this included using another approach? (Which one?) |
I do not see why to add the |
I fixed more files, but there are cases where large chunks of HTML are output before $_Page->print(). We could add $_Page->setIncludeInHeadStr() and setIncludeInBodyStr() to add an a verbatim string instead of a file? |
Out of curiousity, where in the AVideo codebase exactly is I see that this pull request adds some calls to the |
Also, based on the method's signature, its supplied parameter should be an array, but the calls to it in this pull request supply a string. Not sure whether that'll be a problem or not, but figured worth mentioning. |
This change makes sure the page component are output in proper order: JS includes in <head>, and page content inside <body>. Nothing should appear before <!DOCTYPE>
If accepted, the same change should be done to most files in the view directory.