Smarty unable to read template resource?

From: Date: Mon, 13 Jan 2003 19:23:36 +0000
Subject: Smarty unable to read template resource?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7143@lists.php.net to get a copy of this message
I'm getting the following error: Smarty error: unable to read template resource: "index.tpl" in /var/www/mydomain/httpdocs/smartyfiles/Smarty.class.php on line 589 I can get Smarty to work when all of my scripts reside in the top level directory that includes my template and template_c directories. However I am trying to create a subdirectory (i.e. an "admin" directory). I am then trying to refer back to my Smarty directories but it doesn't seem to like what I am doing. For instance I am using the following statement in a file titled index.tpl that resides in my admin directory which is on the same level as my smartyfiles directory and templates and templates_c directories... require("../smartyfiles/Smarty.class.php"); I'm trying to reference the directory that Smarty.class.php resides in and am getting the error listed above. Any ideas? I've seen postings that had a similar error however I haven't seen a response that I understand. for instance one solution was to... Add the following line to your constructor: parent::Smarty(); What exactly does that mean to a novice like myself? Can anybody point me in the right direction thanks? Thanks, brian fidler

« previous php.smarty.general (#7143) next »