Jump to content

Smarty Install


russia5

Recommended Posts

Hello, I am installing Smarty Templates.  Here is the folder/file configuration.

 

www.mydomain.com

/templates (folder)

/template_c (folder)

/configs (folder)

/cache (folder)

/libs

/index.php

 

/libs/internals/

/libs/plugins/

/libs/Smarty_Compiler.class

/libs/Config_File.class

/libs/Smarty.class

 

Upon logging into the home page, I get this error:

 


Warning: main(../usr/libs/Smarty.class.php): failed to open stream: No such file or directory in /home/russia6/public_html/index.php on line 3

Warning: main(../usr/libs/Smarty.class.php): failed to open stream: No such file or directory in /home/russia6/public_html/index.php on line 3

Fatal error: main(): Failed opening required '../usr/libs/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/russia6/public_html/index.php on line 3

 

Here is the index.php

 

<?php

require '../libs/Smarty.class.php';

$smarty = new Smarty;

$smarty->compile_check = true;
$smarty->debugging = true;

 

I have tryed to put in

 

require '../usr/libs/Smarty.class.php';

 

But, I get the same thing.

 

Anyone know what I must do?

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/40991-smarty-install/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.