I also got the Uncaught exception 'Zend_Http_UserAgent_Features_Exception'
with message '"wurflapi" configuration is not defined' error.

It turns out I wasn't using the application resource....my resource
configuration was correct but I was doing

        $userAgent = new Zend_Http_UserAgent();
        $device = $userAgent->getDevice();

in my code.  I think this could be a common mistake.  The solution is to
store the resource and use it

Bootstrap.php:
    protected function _initUserAgent() {
        $agent = $this->getPluginResource('useragent')->getUserAgent();

        Zend_Registry::set('useragent', $agent);
    }

IndexController.php:
        $userAgent = Zend_Registry::get('useragent');
        $device = $userAgent->getDevice();


--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Exception-when-Setting-up-WURFL-tp3354409p3625027.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to