How to get an instance of the ForumMadeSimple object and is this object a singleton?
Thanks in advance.
[Solved] ForumMadeSimple instance
[Solved] ForumMadeSimple instance
Last edited by s7orm on Fri Apr 18, 2008 10:35 am, edited 1 time in total.
Re: ForumMadeSimple instance
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.
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
Look heres7orm wrote: Okay, I could generalize my question a bit - how to get an instance of any module?
Alby