xXx_Hobbes_xXx Posted March 31, 2008 Share Posted March 31, 2008 Warning: Smarty error: unable to read resource: "store_front.tpl" in C:\tshirtshop\libs\smarty\Smarty.class.php on line 1092 Here's the lines of my php function trigger_error($error_msg, $error_type = E_USER_WARNING) { (1092->) trigger_error("Smarty error: $error_msg", $error_type); } Link to comment https://forums.phpfreaks.com/topic/98832-smarty-error/ Share on other sites More sharing options...
DyslexicDog Posted March 31, 2008 Share Posted March 31, 2008 It looks like smarty can't find your store_front.tpl file? Link to comment https://forums.phpfreaks.com/topic/98832-smarty-error/#findComment-505698 Share on other sites More sharing options...
eli geske Posted November 14, 2008 Share Posted November 14, 2008 I had this same error. I tried download the source files from the book. But that caused more errors. Warning: Smarty error: unable to read resource: "store_front.tpl" in C:\wamp\tshirtshop\libs\smarty\Smarty.class.php on line 1092 FIX: What caused my error was extremely simple overlook as your typing from the book. I forget an "s" in the __contruct. See, I did it again. Also make sure that before your "__construct function" that is TWO(2) count them... TWO. underscores which is overlooked frequently. That function is located in your application.php This post would have helped me last night. Eli Geske Link to comment https://forums.phpfreaks.com/topic/98832-smarty-error/#findComment-690096 Share on other sites More sharing options...
DarkerAngel Posted November 14, 2008 Share Posted November 14, 2008 You need to make sure the template directory is properly set (Default is: templates) Link to comment https://forums.phpfreaks.com/topic/98832-smarty-error/#findComment-690099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.