cvs: smarty / QUICK_START
"Monte Ohrt" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmohrt1107463040@cvsserver> |
mohrt Thu Feb 3 15:37:20 2005 EDT
Modified files:
/smarty QUICK_START
Log:
fix example
http://cvs.php.net/diff.php/smarty/QUICK_START?r1=1.1&r2=1.2&ty=u
Index: smarty/QUICK_START
diff -u smarty/QUICK_START:1.1 smarty/QUICK_START:1.2
--- smarty/QUICK_START:1.1 Thu Feb 3 15:35:24 2005
+++ smarty/QUICK_START Thu Feb 3 15:37:20 2005
@@ -55,13 +55,18 @@
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
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php