Mailinglisten-Archive |
Marita Betz schrieb:
> Aufruf: http://localhost/Smarty/myapp/index.php
>
> *Warning*: Smarty error: unable to read resource: "index.tpl" in
> */usr/local/lib/php/Smarty/Smarty.class.php* on line *1095
>
> Hier meine index.php. Die passt doch so, oder?
> Diese ist im Verzeichnis /var/www/Smarty/myapp
>
> <?php
>
> // put full path to Smarty.class.php
> require('/usr/local/lib/php/Smarty/Smarty.class.php');
> $smarty = new Smarty();
>
> $smarty->template_dir = '/localhost/Smarty/templates';
> $smarty->compile_dir = '/localhost/Smarty/templates_c';
> $smarty->cache_dir = '/localhost/Smarty/cache';
> $smarty->config_dir = '/localhost/Smarty/configs';
> $smarty->assign('name', 'Ned');
> $smarty->display('index.tpl');
> ?>
>
> *Hier die index.tpl diese ist im Verzeichnis /var/www/Smarty/templates
/localhost/Smarty/templates !== /var/www/Smarty/templates
--
Sebastian Mendel
www.sebastianmendel.de
php::bar PHP Wiki - Listenarchive