[SMARTY] Problem when moving directories

"Tony K." <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
I have been developing a website using smarty on my local (linux)
server.  It has been working OK so far. I have a file called setup.php
which includes:

***************************************************
define('SMARTY_DIR', '/usr/share/php/smarty/libs/');
require(SMARTY_DIR . 'Smarty.class.php');

class Smarty_Test extends Smarty {

   function Smarty_Website(){

        $this->Smarty();
        $this->template_dir = '/var/www/html/foobar/public_html/templates';
        $this->compile_dir  = '/var/www/html/foobar/public_html/templates_c';
        $this->config_dir   = '/var/www/html/foobar/public_html/configs';
        $this->cache_dir   = '/var/www/html/foobar/public_html/cache';

        $this->caching = true;
        $this->assign('app_name', 'test');
   }
}
***************************************************

This file is required() by the index.php page.

However, when I tried moving all the directories (cache, config,
template, template_c) and associated files except the index.php page
to one level above public_html (../) I get the following error
message:

(Warning: Smarty error: unable to read resource: "type1.tpl" in
/usr/share/php/smarty/libs/Smarty.class.php on line 1088)

"type1.tpl" is my index.tpl page.

I changed the references from...

        $this->template_dir = '/var/www/html/foobar/public_html/templates';
        $this->compile_dir  = '/var/www/html/foobar/public_html/templates_c';
        $this->config_dir   = '/var/www/html/foobar/public_html/configs';
        $this->cache_dir   = '/var/www/html/foobar/public_html/cache';

to...
        $this->template_dir = '/var/www/html/foobar/templates';
        $this->compile_dir  = '/var/www/html/foobar/templates_c';
        $this->config_dir   = '/var/www/html/foobar/configs';
        $this->cache_dir   = '/var/www/html/foobar/cache';

Is there another configuration that needs to be changed that I am not
thinking about?  Again, this works fine before trying to move the
directories.

Any ideas?

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.