0

I try to install smarty and when I write the require code I cannot find the path

require_once ('d:/wamp/bin/php/php5.3.5/Smarty-3.0.8/Smarty.class.php');

or if you could tell me which is the correct syntax in the ini.php page.
Thanks

4
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by diafol
0

It simply means that php cannot find the /path/to/this/file/Smarty.class.php

So when php start it looks at all the include path defined in your environment and once its not there it gives up.

solution. either place the smarty class in your webroot or also tell php.ini where to find it...

[B]; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;[/B]

restart server

0

I found installing Smarty within the website was easier.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.