Author Topic: [HOW TO] Create a static page (e.g. Contact Us etc)  (Read 4148 times)

inmotion

  • Administrator
  • Hero Member
  • *****
  • Posts: 2788
  • PHPmotion Developer
    • PHPmotion Demo
[HOW TO] Create a static page (e.g. Contact Us etc)
« on: August 11, 2007, 02:12:19 AM »
This is what you will need:

1) main_1.htm (this is the shell)

2) inner_about_us.htm (or similar - this is your html tenplate with your static content)

3) aboutus.php  (the actual php script . Just create a blank file in notepad or similar)


All you need to do now is edit/code aboutus.php (or whatever you have called it) as shown below


Quote

<?php

/**
 * Static Content Content
 */

include_once("classes/config.php");
//include_once('classes/login_check.php');  //uncomment this out if you want only logged in member to view page
include_once('classes/menu.php') ;
//include_once ('classes/sessions.php');    //uncomment this out if you want only logged in member to view page



//loading the templates
///////////////////////

$template = "templates/main_1.htm";
$inner_template1 = "templates/inner_aboutus.htm";//your actual static content template name
$TBS = new clsTinyButStrong;
$TBS->NoErr = true;
$TBS->LoadTemplate("$template");
$TBS->Render = TBS_OUTPUT;
$TBS->Show();
die();

?>





« Last Edit: August 14, 2007, 02:30:47 AM by inmotion »