I've unzipped wurfl-2.0.27.zip
and getting rid of wurfl-config.php
with this in the config.ini
resources.useragent.storage.adapter = "Session"
resources.useragent.wurflapi.wurfl_api_version = "1.1"
resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH
"/../library/wurfl-php-1.3.1/WURFL/"
resources.useragent.wurflapi.wurfl_config_array.wurfl.main-file =
APPLICATION_PATH "/../data/wurfl/wurfl.xml"
resources.useragent.wurflapi.wurfl_config_array.wurfl.patches =
APPLICATION_PATH "/../data/wurfl/web_browsers_patch.xml"
resources.useragent.wurflapi.wurfl_config_array.persistence.provider =
"file"
resources.useragent.wurflapi.wurfl_config_array.persistence.dir.dir =
APPLICATION_PATH "/../data/wurfl/cache/"
I've in the cache folder like
/cache
/0
/0
/112cae9721bd46a6a1b13cd6cab1cc
and it seems to work
if I put
$bootstrap = $this->getInvokeArg('bootstrap');
$userAgent = $bootstrap->getResource('useragent');
$width = $userAgent->getDevice()->getPhysicalScreenWidth();
var_dump($width);
in my index controller
I've got
string '49' (length=2)
but your feedback would be very appreciated :)
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/WURFL-1-3-1-autoloader-trouble-tp3823975p3824049.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]