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.

Recommended Answers

I believe you need

there is full documentation for installing smarty.

Jump to Post

All 3 Replies

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"

restart server

Member Avatar

I found installing Smarty within the website was easier.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.