X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help with Smart and PHP calling to a template. (https://forum.x-cart.com/showthread.php?t=4651)

Gibberish 10-06-2003 06:51 PM

Help with Smart and PHP calling to a template.
 
Ok highly modified xcart here that Im testing out. I keep getting this error and cant get around it. Help me out if you can.

Here is the error:

Warning: Smarty error: unable to read template resource: "templates/home.tpl" in /usr/local/4admin/apache/vhosts/design4rent.com/httpdocs/mythsandlegends/libs/Smarty.class.php on line 1042

Now line 1042 in smart.class.php says:

trigger_error("Smarty error: $error_msg", $error_type);

So I am guessing that is just the generic error shoing up?

that resource the error is talking about is being called by this:

$smarty->display("templates/home.tpl");

which is in my index.php

There is a home.tpl in my templates folder. Any suggestions?

shan 10-07-2003 03:44 AM

what did you change before hand ?

templates/home.tpl ? sounds an odd directory

Gibberish 10-07-2003 10:43 AM

I changed skin1 to templates. Im just playing around with smarty and the php to see what does what.

I did figure it out though and got it all working.

Thanks for the response


All times are GMT -8. The time now is 03:20 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.