I have a UDT that looks like this:
Code: Select all
include("antwoorden.php");
Code: Select all
$smarty->assign('firstname', 'Doug');
In my page template I am using:
Code: Select all
{$firstname}
Thank you.
Sander
Code: Select all
include("antwoorden.php");
Code: Select all
$smarty->assign('firstname', 'Doug');
Code: Select all
{$firstname}
Do I need to take this into account when upgrading? Is there also another approach that will continue to work in 1.11?As of CMSMS version 1.11 it is invalid to overwrite the $smarty object that is passed in to the UDT with the global smarty object.
In example in a User Defined Tag this code is invalid and will cause errors:
$smarty = cmsms()->GetSmarty()
Unless you changed the order of the template processing, the < body> is processed before <head> so the variable should be avaliable.JohnnyB wrote:You would need to put your UDT before the <head> if you want to use a var from it early on...
Then you will have to remove: $smarty = cmsms()->GetSmarty(); from the UDT.sanderhartveld wrote:Well see later on what happens when I upgrade.