Maybe you can find here an answer for your question
http://wiki.cmsmadesimple.org/index.php ... age_Change
user defined tags and $this->GetModuleInstance('CMSMailer')
Re: user defined tags and $this->GetModuleInstance('CMSMailer')
Try $mail &= CmsModule::GetModuleInstance('CMSMailer');
That should work...
That should work...
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: user defined tags and $this->GetModuleInstance('CMSMailer')
In a UDT you can also do this:
global $gCms;
$cmsmailer =& $gCms->modules['CMSMailer']['object'];
global $gCms;
$cmsmailer =& $gCms->modules['CMSMailer']['object'];
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.
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: user defined tags and $this->GetModuleInstance('CMSMailer')
it's called the 'scope resolution operator'..... but that's geek talk 

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.
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.