Results 1 to 5 of 5

Thread: How to make simple pages with 2.7

  1. #1

    Default How to make simple pages with 2.7

    Hi there!

    I already have a few pages made for the previous version, where i needed to add this to the beginning:
    Code:
    <?php
    session_start();
    include("include/config.php");
    include("include/function.php");
    STemplate::display('header.tpl');
    ?>
    and this for the footer:
    Code:
    <?php
    STemplate::display('footer.tpl');
    ?>
    But those arent working now, how should a simple static page look in 2.7?

    Thanks!

  2. #2

    Default

    So it wasnt that hard.. add this for the beginning:

    Code:
    <?php
    require 'include/config.php';
    require 'include/language/' . LANG . '/lang_add_favour.php';
    
    $smarty->display('header.tpl');
    ?>
    and for the end:
    Code:
    <?php
    $smarty->display('footer.tpl');

  3. #3

    Default

    Make sure u add

    $smarty = new Smarty;

    at the top to parse your variables

    Code:
    <?php
    require 'include/config.php';
    require 'include/language/' . LANG . '/lang_add_favour.php';
    $smarty = new Smarty;
    
    
    
    
    
    $smarty->display('header.tpl');
    $smarty->display('footer.tpl');
    ?>

  4. #4

    Default

    I'm not using any variables through the page.. all the content is only static...

  5. #5

    Default

    Quote Originally Posted by pjohn View Post
    I'm not using any variables through the page.. all the content is only static...

    Still need $smarty = new Smarty; to show your templates

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
  •