What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
Table of Contents
Definiert den absoluten Systempfad zu den Smarty Klassendateien. Falls der Wert nicht definiert ist, versucht Smarty ihn automatisch zu ermitteln. Der Pfad muss mit einem '/'-Zeichen enden.
Example 11.1. SMARTY_DIR
<?php // Pfad zum Smarty Verzeichnis setzen define('SMARTY_DIR', '/usr/local/lib/php/Smarty/libs/'); // Pfad zum Smarty Verzeichnis setzen (unter Windows) define('SMARTY_DIR', 'c:/usr/local/lib/php/Smarty/libs/'); // Smarty einbinden (der Dateiname beginnt mit großem 'S') require_once(SMARTY_DIR . 'Smarty.class.php'); ?>
Siehe auch $smarty.const und $php_handling constants