Tuesday, October 4, 2011

Smarty upgrade to 3.1.2

Upgrading Smarty to version 3.1.2 (from 3.0.* versions) might bring you some troubles:

1. If you receive "SmartyException' with message 'property 'rendered_template' does not exist." Exception, then just rename newly copied "Smarty.class.php" to the appropriate name, appearently this exceptionis thrown if you use OLD version of smarty class with it's new system classes

2. If you receive "Trying to get property of non-object" with line 1157 or smth like that, then you appearently use Smarty class extending it. So trick is that Smarty has constructor now, so please add "parent::__construct()" as first line into your child class (that extends Smarty)

Gl & Hf

No comments:

Post a Comment