user defined tags and $this->GetModuleInstance('CMSMailer')

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
cyberman

Re: user defined tags and $this->GetModuleInstance('CMSMailer')

Post by cyberman »

Maybe you can find here an answer for your question

http://wiki.cmsmadesimple.org/index.php ... age_Change
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: user defined tags and $this->GetModuleInstance('CMSMailer')

Post by Ted »

Try $mail &= CmsModule::GetModuleInstance('CMSMailer');

That should work...
calguy1000
Support Guru
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')

Post by calguy1000 »

In a UDT you can also do this:

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.
calguy1000
Support Guru
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')

Post by calguy1000 »

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

Return to “Developers Discussion”