Citizen
01-07-2010, 05:55 PM
In your main SAA folder, create a file called sample_page.php
Inside this file, paste the following code:
<?php
require_once('./include/setup/setup.php');
include('header.php');
$smarty->assign('sampleVar','hello');
include('footer.php');
$smarty->display('sample_page.tpl');
?>Then, create a new file in your /templates folder, called sample_page.tpl
Inside this file, paste the following code:
{include file='./header.tpl'}
{$sampleVar|capitalize} world!
{include file='./footer.tpl'}Then, point your browser to yourdomain.com/sample_page.php and see the results!
Inside this file, paste the following code:
<?php
require_once('./include/setup/setup.php');
include('header.php');
$smarty->assign('sampleVar','hello');
include('footer.php');
$smarty->display('sample_page.tpl');
?>Then, create a new file in your /templates folder, called sample_page.tpl
Inside this file, paste the following code:
{include file='./header.tpl'}
{$sampleVar|capitalize} world!
{include file='./footer.tpl'}Then, point your browser to yourdomain.com/sample_page.php and see the results!