v 1.9 change to $gCms->getSmarty Topic is solved

General project discussion. NOT for help questions.
Post Reply
kendo451

v 1.9 change to $gCms->getSmarty

Post 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().
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: v 1.9 change to $gCms->getSmarty

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “General Discussion”