I'm trying to include a PHP file (BrowserDetection) within my plugin.
I've tried this:
Craft::import('plugins.myPlugin.resources.php.BrowserDetection');
Which doesn't return any errors, but also doesn't work. I've also tried:
require_once 'resources/php/BrowserDetection.php';
Which does pull in the file, but each time I tried to refer to it like: "$browser = new BrowserDetection();" I get something like this:
Fatal error: Class 'Craft\BrowserDetection' not found in /Volumes/Mark Notton/Clients/The STC/Website/craft/plugins/myPlugin/MyPlugin.php on line 33
Apologies for the very noob question. I just don't understand how to pull in additional PHP resources. Perhaps I'm overlooking some bespoke craft syntax?