Page 1 of 1

v 1.9 change to $gCms->getSmarty

Posted: Tue Nov 09, 2010 1:12 am
by kendo451
I've got a lot of UDTs that use:

Code: Select all

global $gCms;
$smarty =& $gCms->GetSmarty();
What is the recommended way to replace this since the smarty object has been done away with in 1.9?

The only smarty method I really use is assign().

Re: v 1.9 change to $gCms->getSmarty

Posted: Tue Nov 09, 2010 1:21 am
by calguy1000
The $gCms global PHP variable is still there... it's just deprecated.

The {$gCms} smarty variable was removed.

However:

Code: Select all

$gCms = cmsms();
will work.