[pLog-svn] r2881 - in plog/trunk/class/template/smarty:

Mark Wu markplace at gmail.com
Wed Feb 1 18:42:16 GMT 2006


Another kind of fix is more generic for us...

I try to add the relative path support in smarty.class.php, then we don't
need to change any thing

Take a look at the code from 1540-1549 ...

So, it may make smarty more slower/unsafe/worst (I guess) .... Need to
clarify ...

(Personally, I like this one)

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> Sent: Thursday, February 02, 2006 2:22 AM
> To: plog-svn at devel.lifetype.net
> Subject: RE: [pLog-svn] r2881 - in plog/trunk/class/template/smarty:
> 
>  	It sounds like we had better switch to absolute paths.  
> They keep talking about safest/best/etc, sounds like there 
> might be other issues that we don't know about (yet).
>  	It seems like Mark's solution of prepending the 
> CLASS_PATH would be fine, we just need to make sure to do it 
> every time we use the
> config('template_folder') call.
> 
> On Thu, 2 Feb 2006, Mark Wu wrote:
> > You can take a look at these two post, why the relative path is not 
> > allowed in .template  (.tpl) file
> >
> > http://www.phpinsider.com/smarty-forum/viewtopic.php?t=4725
> > http://www.phpinsider.com/smarty-forum/viewtopic.php?t=5985
> >
> > BTW, I am not sure the modification is work for every 
> situation, need 
> > more test ...
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Smarty.class.php
Type: application/octet-stream
Size: 63408 bytes
Desc: not available
Url : http:// devel.lifetype.net/pipermail/plog-svn/attachments/20060202/f166b2fe/Smarty.class-0001.obj


More information about the pLog-svn mailing list