1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to put a php include in my header?

Discussion in 'General PHP and MySQL Discussions' started by drastic, Mar 29, 2015.

  1. drastic

    drastic Well-Known Member

    Guys and gals,

    How can I place a php include in my header file?

    What's the proper code to insert it?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. drastic

    drastic Well-Known Member

    I tried that, but it won't excecute the php.

    Here's what I'm trying to use a php include for:

  4. Brogan

    Brogan XenForo Moderator Staff Member

    Note the constraints:
    • Like all of our other callbacks, it must happen to a method within a class. You can't just read out /etc/passwd directly.
    • The method that you're calling must start with a limited set of prefixes: get, is, has, render, view, return, print, show, display
  5. drastic

    drastic Well-Known Member

    non coder here...i saw that and just thought "whaaaaat?" I wasn't sure what to do at that point.

    edit - found another thread on callbacks that let me know the steps needed.

    thanks for pointing in the right direction, it worked perfectly.
    Last edited: Mar 31, 2015

Share This Page