Anyone worked out how to use custom created options for an addon inside your main addon class yet?
bit stuck!
I've worked out that standard options for XenForo_Application are called as follows, but cant figure out custom ones:
EDIT: Scrap that - they are stored in the default array! Man I need to sleep!
Edit2: Hmm...it wont let me use the options in a custom addon :/ I just get this:
bit stuck!
I've worked out that standard options for XenForo_Application are called as follows, but cant figure out custom ones:
PHP:
$options = XenForo_Application::get('options');
EDIT: Scrap that - they are stored in the default array! Man I need to sleep!
Edit2: Hmm...it wont let me use the options in a custom addon :/ I just get this:
Fatal error: Cannot use object of type XenForo_Options as array