Jump to content

smarty template configuration


russia5

Recommended Posts

I am setting up Smarty for the first time.  

 

(I have the parent site  www.xyz.com and within that site's folders, I have a daughter site  www.atc-roofing.com

 

The folder list is:

 

public_html/atc-roofing/

public_html/xyz folders and index.php

 

Under the folder public_html/ atc-roofing/

 

reside the folling folders:

 

smarty/libs/(smarty folders and files

atc-roofing/cashe/

atc-roofing/templates/

atc-roofing/templates_c/

acc-roofing/config/

 

The public_html/atc-roofing/ index.php file reads:

 

<?PHP

 
// put full path to Smarty.class.php
require_once ('smarty/libs/Smarty.class.php')>
 
$smarty = new Smarty;
$smarty->caching = true;
$smarty->cache_lifetime = 120;
$smarty->template_dir = './templates';
$smarty->compile_dir = './templates_c';
 
$smarty->assign('name', 'Ned');
$smarty->display('index.tpl');
?>
 
The error I am getting is:
 
Fatal error: Class 'Smarty' not found in /home1/nuclearp/public_html/atc-roofing.com/index.php on line 6
 
 
Can anyone see what I am doing wrong with my path to the Smarty.Class.php
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.