Jump to content
  • 0

Execute PHP at different times on template page load


SeanP

Question

So, in order to work around some broken (and possible security risking) functionality, that WHMCS insists is intended functionality, I have the need to execute PHP code at different times on the template page load of an addon module.  In the past, this could be accomplished by executing PHP code using the "{php}" tags at different places during the page load.  I basically need to execute PHP code at the start of the addon's template page load, then after the template page is fully loaded (at the end of the load).  How is this accomplished when using hooks to execute all of the PHP code?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You should provide more details. I tend to say that it's doable. As last resource you could use PHP stream (ob_start, ob_get_content) or auto prepend/append but don't do it, it sucks on so many levels and could break 3rd party modules.

Edited by Kian
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated