Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: X Template

  1. #1
    Senior Member leprechaun13's Avatar
    Join Date
    May 2005
    Location
    Northampton
    Posts
    487
    Member #
    10058
    Ive decided to rewrite my CMS with proper templating, and decided to use X Template as many of the big developers use it, particularly CubeCart and wonder.

    I need an include file to get the content. for this I need to use

    Code:
     {FILE "file.inc"}
    in the template to include the file, but id just like to use {PAGE_CONTENT} instead, ive tried looking through the CubeCart source and im no closer to my goal so some help would be real good
    Regards Phil,


  2.  

  3. #2
    Member
    Join Date
    Apr 2007
    Posts
    96
    Member #
    15165
    Quote Originally Posted by leprechaun13
    Code:
     {FILE "file.inc"}
    in the template to include the file, but id just like to use {PAGE_CONTENT} instead,
    I do not know about x template but from using some other template engines, I would say you have to do something in php like

    $allthetext = "a bunch of text";
    $tpl->assign("PAGE_CONTENT", $allthetext);

  4. #3
    Senior Member leprechaun13's Avatar
    Join Date
    May 2005
    Location
    Northampton
    Posts
    487
    Member #
    10058
    i thought of using fopen() to get the content then display it but I just wondered if there was a simpler solution.
    Regards Phil,



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:52 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com