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

Having problems putting PHP into a page

Discussion in 'XenForo Development Discussions' started by Matthew Hawley, Dec 5, 2013.

  1. Matthew Hawley

    Matthew Hawley Well-Known Member

    This is the html I put in the page
    <div class="baseHtml messageText">
    {xen:raw $cssMinify}
    This is my PHP file in /library/XenForo/Pages/CSSMinifier.php
    class XenForo_Pages_CSSMinifier
        public static function includeFile(XenForo_ControllerPublic_Abstract  $controller, XenForo_ControllerResponse_Abstract &$response)
            $myContent = ob_get_contents();
            $params = array(
                'myContent'  => $cssMinify
            $response->params = array_merge(
    All I'm getting is a blank page. Any suggestions?
    Last edited: Dec 5, 2013
  2. 0xym0r0n

    0xym0r0n Well-Known Member

    is debug mode on? I would like to think the callback is wrong on your page node, but you'd have got an error on the admin end when trying to save. I haven't done this in a while. You should try using routes now. I think it's within your capabilities to go outside of pages. If you need help with that give me a PM and I'll try to walk you through.
  3. Matthew Hawley

    Matthew Hawley Well-Known Member

    Yes debug mode is on.

Share This Page