Learning PHP and MySQL

Wednesday, September 27, 2006

Example 16-1 The config.php script defines settings that are used throughout the site

<?php
//  put  full  path  to  Smarty.class.php 
require('/usr/share/php/Smarty/Smarty.class.php');
$smarty  =  new  Smarty();

$smarty->template_dir  =  '/home/www/htmlkb/smarty/templates';
$smarty->compile_dir  =  '/home/www/htmlkb/smarty/templates_c';
$smarty->cache_dir  =  '/home/www/htmlkb/smarty/cache';
$smarty->config_dir  =  '/home/www/htmlkb/smarty/configs';

$blog_title="Coffee  Talk  Blog";
?>

Posted by krautgrrl on 09/27 at 11:30 AM
Chapter 16 Code • (0) Comments • (3) TrackbacksPermalink

Statistics

This page has been viewed 407372 times
Page rendered in 0.1627 seconds
Total Entries: 224
Total Comments: 16
Total Trackbacks: 307338
Most Recent Entry: 09/27/2006 12:39 pm
Most Recent Comment on: 10/26/2007 10:00 am
Total Members: 2
Total Logged in members: 0
Total guests: 12
Total anonymous users: 0
Most Recent Visitor on: 05/19/2012 06:39 am
The most visitors ever was 1103 on 11/20/2007 12:50 pm

Referrers

Powered by ExpressionEngine