Page 1 of 1

[Solved] ForumMadeSimple instance

Posted: Wed Apr 16, 2008 1:29 pm
by s7orm
How to get an instance of the ForumMadeSimple object and is this object a singleton?

Thanks in advance.

Re: ForumMadeSimple instance

Posted: Thu Apr 17, 2008 8:24 am
by s7orm
Okay, I could generalize my question a bit - how to get an instance of any module?
I saw few examples and in some of them, there is a method in CMSModule - GetSearch() (or similar) to get an instance of the search module, so I suppose, that there are few build-in functions... For other modules people use a method GetModuleInstance() (or something like this, I dont remember the name correctly), however when applied like GetModuleInstance('Forum') I receive an error message...
Can I somehow get an instance from the Forum or some random (e.g. my own) module?

Thanks in advance.

Re: ForumMadeSimple instance

Posted: Thu Apr 17, 2008 8:56 am
by alby
s7orm wrote: Okay, I could generalize my question a bit - how to get an instance of any module?
Look here

Alby