NYCPHP Meetup

NYPHP.org

[nycphp-talk] Smarty Error

Scott Mattocks crisscott at netzero.com
Fri Jul 2 11:06:29 EDT 2004


Donald J. Organ IV wrote:
> i have copied this file to all the obvious places that i can think of and
> still nothing.

You tell it where to look when you call display.
$smarty->display('path/to/templates/error.tpl');

If you are including the template in another template it works the same way.
{include file="path/to/templates/error.tpl"}

If you are using a relative path, it is relative to the script that is 
calling the display method or the template that has the include statement.

Also double check that your web server user has permission to view the file.

Scott Mattocks



More information about the talk mailing list