I tried hacking it into index.php (as "print $smarty->version;") but it
gives
Notice: Undefined property: MySmarty::$version in /srv/disk6/1497319/www/presents.dx.am/phpgiftreg/includes/Smarty-3.1.12/libs/Smarty.class.php on line 671
Isn't Smarty the version installed with PHP Gift Registry (i.e.
Smarty-3.1.12); it's not a system componenent is it?
Just been starting to try and get PHP Gift Registry running on a free web host.
I was getting errors along the lines of:
The solution is to edit includes\MySmarty.class.php and change the definition of display() to:
Thanks. What version of Smarty and PHP are on the host?
Just noticed that this should really be in the Help section - sorry.
Anyway; PHP Version 5.4.12
Smarty I don't know and can't see how to find out (I'm mainly muddling through...)
Last edit: Duncan 2013-08-31
No problem! I think you can do this:
{$smarty.version}
On Sat, Aug 31, 2013 at 12:50 PM, Duncan Lilly duncan_lilly@users.sf.netwrote:
I tried hacking it into index.php (as "print $smarty->version;") but it gives
Isn't Smarty the version installed with PHP Gift Registry (i.e. Smarty-3.1.12); it's not a system componenent is it?
Oh yeah, you're right, phpgiftreg comes with a fixed version of Smarty.
That syntax of ${smarty.version} is meant for the template file, not the
PHP file. I don't think it works both ways.
On Sat, Aug 31, 2013 at 1:33 PM, Duncan Lilly duncan_lilly@users.sf.netwrote: