Fork me on GitHub

php not parsing in htm Xanthia files  Bottom

  • Currently I'm able to parse PHP within tags in .htm and .html files by using an AddHandler statement inside of <directory> tags in apache's httpd.conf file. Parsing occurs in non-Xanthia .htm and .html files (including AutoTheme theme.html files), but I'm having some trouble making this work in any Xanthia themes I've tried, particularly in the master.htm files.

    The scripts show up in the final page source, they just aren't being parsed.

    My plan is to use PHP includes in my master, home, and user templates for shared code, but thus far I've been unable to even get



    to parse.

    I'm not sure if it's a configuration issue or a nesting issue, either way I just don't what to do about it. TIA</directory>
  • To parse PHP in Xanthia (Smarty) templates you need to use PHP tags and . It's only recommend to use PHP tags as a last resort. See this thread where i've outlined the options available.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Though I'll have to learn more about Smarty to do what I want to do the "right" way, until then you've given me what I needed to know to get my site going. Thank you markwest!
  • 0 users

This list is based on users active over the last 60 minutes.