seandelaney/Minimee_Room_Service — Issue #1: Minimee can be configured without extension
Author: johndwells
Created: 2012-02-18 09:45:25+00:00
State: open

Hey Sean,

So Minimee can actually be configured a few different ways - via the extension, via global vars, or via EE's config object. (In Version 2 I'll drop global var support). Rather than duplicating all of the work that Minimee does to fetch settings, you may want to consider simply instantiating Minimee_ext, calling Minimee_ext::get_settings(), and then grabbing the particular path out of its $settings property. So something like:

```php
if ( ! class_exists('Minimee_ext'))
{
require_once(PATH_THIRD . 'minimee/ext.minimee.php');
}
$minimee = new Minimee_ext();
$minimee->get_settings();
```

You'd then check if Minimee has been configured by checking that $minimee->settings['cache_path'] exists, because if it hasn't the $settings property will be an empty array.

Thanks for developing this! I'll think about how to integrate something like this into the next version...

Cheers,
John