Page 1 of 1

Smarty at another Location and with newer version

Posted: Fri Feb 15, 2008 12:45 pm
by Florian Fiegel
Hi,

on my webspace I already got Smarty at another location with a newer version cause I use it for a couple of other pages.

My first question is: Can I use a newer version of Smarty without problems to compability?
And if this works: Where can I define the SMARTY DIR to use the newer version?

greets
FF

Re: Smarty at another Location and with newer version

Posted: Fri Feb 15, 2008 12:50 pm
by garvinhicking
Hi!

Yes, you can use a newer smarty version; s9y uses Smarty unmodified. Best thing is if you copy your Smarty files into the s9y bundled-libs directory, or set a symlink.

If you absolutely must patch the SMARTY_DIR, look for it in the include/functions_smarty.inc.php file in the serendipity_smarty_init() function.

Regards,
Garvin

Posted: Fri Feb 15, 2008 4:22 pm
by Florian Fiegel
Thx.

Cause I am going to integrate a menu and a few other things with s9y and the "normal" pages, i have to use Smarty from the other directory. So it seems i have to make a symlink.

But to be honest: I don't know how to create a symlink. Do you have any link to a tutorial? :oops:

Posted: Fri Feb 15, 2008 5:46 pm
by garvinhicking
Hi!

Lookup google for a tutorial. But it does not matter if you copy the files over, because your menu and the other parts can be interpreted by serendipity's smarty; another Smarty object instance will not be involved.

Regards,
Garvin