Menu

#7 Smarty include path error

v1.0_(example)
open
nobody
5
2009-03-04
2009-03-04
jantman
No

The Smarty include path is hard-coded into include/smarty.php in a distribution-specific nature.

/usr/local/lib/php/Smarty/Smarty.class.php
is specific to RH/FC/CentOS. On my OpenSuSE 10.2 box, it's
/usr/share/php5/Smarty/Smarty.class.php.

As long as the Smarty/ directory is within PHP_INCLUDE_PATH, the require() statement should just be:
require('Smarty/Smarty.class.php');

Discussion


Log in to post a comment.

MongoDB Logo MongoDB