Hello everyone,
It seems that the function GetModuleInstance($module_name, $version) in class CmsObject is deprecated. It says so at http://www.cmsmadesimple.org/apidoc/
It doesn't say what to use instead, so... what should I use instead?
With kind regards,
Jurrie
[Solved] GetModuleInstance deprecated - what to use instead?
[Solved] GetModuleInstance deprecated - what to use instead?
Last edited by jurrie on Sat Mar 03, 2012 12:05 pm, edited 1 time in total.
Re: GetModuleInstance deprecated - what to use instead?
cms_utils::get_module()
http://www.cmsmadesimple.org/apidoc/CMS ... get_module
See 1.10 announcement http://forum.cmsmadesimple.org/viewtopi ... =1&t=57370
http://www.cmsmadesimple.org/apidoc/CMS ... get_module
See 1.10 announcement http://forum.cmsmadesimple.org/viewtopi ... =1&t=57370
Re: GetModuleInstance deprecated - what to use instead?
Thank you Uniqu3!
Actually, I don't see it in the 1.10 announcement (only a note on deprecation of the $gCms→modules array), but I'll use cms_utils::get_module() as you've suggested!
Actually, I don't see it in the 1.10 announcement (only a note on deprecation of the $gCms→modules array), but I'll use cms_utils::get_module() as you've suggested!