Announcement: Smarty template engine 1.2.1 released
| From: | Monte Ohrt | Date: | Mon, 29 Jan 2001 16:59:17 +0000 |
| Subject: | Announcement: Smarty template engine 1.2.1 released | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-23@lists.php.net to get a copy of this message | ||
Changes:
- added $compile_dir var, removed $compile_dir_ext var. You can now
specify where to put templates and compiled templates, and not include
the template directory when you call $smarty->display(). Be sure to
update your scripts, get rid of the template directory name. This is
easier if you want your templates and/or the compiled templates outside
of the document root, or away from the scripts calling the templates.
$smarty->template_dir = "/path/to/template_dir"; // can be anywhere
$smarty->compile_dir = "/path/to/compile_dir"; // can be anywhere
// old method, included path to template_dir
$smarty->display("./templates/index.tpl");
// new method, use relative path from template_dir
$smarty->display("index.tpl");
- added tips & tricks section to documentation
- misc documentation updates
Monte