Re: [SMARTY] What else is there??
| From: | Jason Sweat | Date: | Thu, 30 May 2002 02:06:35 +0000 |
| Subject: | Re: [SMARTY] What else is there?? | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4447@lists.php.net to get a copy of this message | ||
From your original post:
./index.php
./class/smarty/
means by default:
./index.php
./configs
./cache <- writeable by webserver
./templates
./templates/index.tpl
./templates_c <- writeable by webserver
./class/smarty/
./class/smarty/plugins <- contains the standard plugins, plus whatever
else you want (like from the plugin repository:
http://www.phpinsider.com/php/code/Smarty/contribs/plugins/
)
or you could override the location of these directories, see :
http://marc.theaimsgroup.com/?l=smarty-general&m=100874164828993&w=2
----- Original Message -----
From: "Gerard Samuel" <gsam@trini0.org>
To: "smarty" <smarty-general@lists.php.net>
Sent: Wednesday, May 29, 2002 8:59 PM
Subject: Re: [SMARTY] What else is there??
> I did a var_dump of SMARTY_DIR in Smarty.class.php in my 'strange'
> setup, and it is pointing
> to where the smarty class and friends are. Maybe Im missing the point.
> All files and folder are owned by the webserver, and the plugins dir and
> Smarty.class.php also live together.
> So, if SMARTY_DIR is pointing to the correct directory, what do I
> 'specifically change' to make it work??
> Thank You...
>
> Jason Sweat wrote:
>
> >Unless you specifically override it, Smarty expects templates,
templates_c,
> >cache and configs to be directly below the script you are running. By
> >default, Smarty also expect plugins directory to be in the same location
as
> >the Smarty.class.php file.
> >
> >templates_c and cache need to be writeable by the web server user and/or
> >group.
> >
> >You might try reviewing:
> >http://www.phpinsider.com/php/code/Smarty/QUICKSTART
> >
> >Regards,
> >
> >Jason
> >
> >----- Original Message -----
> >From: "Gerard Samuel" <gsam@trini0.org>
> >To: "smarty" <smarty-general@lists.php.net>
> >Sent: Wednesday, May 29, 2002 5:09 PM
> >Subject: [SMARTY] What else is there??
> >
> >
> >
> >
> >>Hi. Im trying to setup this directory structure ->
> >>./index.php
> >>./class/smarty/
> >>
> >>Everything that came with smarty is in class/smarty/.
> >>I tried to make a test page and Im getting Smarty error: unable to read
> >>template resource: "index.tpl" in
> >>/files/www/data/misc/lcre/class/smarty/Smarty.class.php on line 546
> >>
> >>Thanks for any input.
> >>
> >>--
> >>Gerard Samuel
> >>http://www.trini0.org:81/
> >>http://dev.trini0.org:81/
> >>
> >>
> >>
> >>--
> >>Smarty General Mailing List (http://smarty.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
>
> --
> Gerard Samuel
> http://www.trini0.org:81/
> http://dev.trini0.org:81/
>
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>