mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
fix example
This commit is contained in:
@@ -55,13 +55,18 @@ Edit the index.php file to look like the following:
|
||||
require('/usr/local/lib/php/Smarty/lib/Smarty.lib.php');
|
||||
$smarty = new Smarty();
|
||||
|
||||
$smarty->template_dir = '/web/www.domain.com/smarty/templates';
|
||||
$smarty->compile_dir = '/web/www.domain.com/smarty/templates_c';
|
||||
$smarty->cache_dir = '/web/www.domain.com/smarty/cache';
|
||||
$smarty->config_dir = '/web/www.domain.com/smarty/configs';
|
||||
|
||||
$smarty->assign('name', 'Ned');
|
||||
$smarty->display('index.tpl');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
SET SMARTY TEMPLATE
|
||||
SETUP SMARTY TEMPLATE
|
||||
|
||||
$> vi /web/www.domain.com/smarty/templates/index.tpl
|
||||
|
||||
|
Reference in New Issue
Block a user