Welcome to TalkGraphics.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2015
    Posts
    1

    Default Adding PHP tags before and after html code

    Hi, Im a very new user to X11Pro and have enjoyed sinking my teeth into something new. However I use often for clients sites a CMS system that requires me to place this code at line 1
    <?php
    ob_start();
    ?>

    and this code at the very end

    <?php include '/home/***clientname****/public_html/a-agents/app/views/pjLayouts/pjActionLoad.php'; ?>

    I found the place holder option to have my content load, and by adding the snippets above the page works fine. I just don't want to have to add this via an editor each time there is a page or site change.

    regards
    mjb

  2. #2
    Join Date
    Nov 2013
    Location
    Hertfordshire, UK
    Posts
    1,488

    Default Re: Adding PHP tags before and after html code

    Apply the name "<html>" to a placeholder and the code will appear at the very top of a page.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •