Thanks Norbert!
--- In hawhaw@yahoogroups.com, "hawhaw_master" <hawhaw_master@...> wrote:
>
> Hi Jason,
>
> using hawdebug/hawoutput params turns off TeraWurfl during hawhaw's
device detection.
> As consequence the required TeraWurfl include files are not included
and therefore the
> tera_wurfl class is not defined.
>
> Add something like this to your script header:
> require_once(<your_tera_wurfl_config.php>);
> require_once(WURFL_CLASS_FILE);
>
> Hope it helps,
> Norbert
>
> --- In hawhaw@yahoogroups.com, "jasonnavarro2003" <jasonnavarro@> wrote:
> >
> > Hi,
> >
> > I am getting this error when trying to output and debug
> >
> > "Fatal error: Class 'tera_wurfl' not found"
> >
> > http://mobiquio.com/demo/index.php
> > http://mobiquio.com/demo/index.php?hawdebug=xhtml
> > http://mobiquio.com/demo/index.php?hawoutput=xhtml
> >
> > Maybe I am calling tera_wurfl incorrectly, What is the way to get
> > tera_wurfl capabilities, Is there a built in class.
> >
> > This is what I am using to initialize tera wurfl caps.
> >
> > $myPage = new HAW_deck("$db_navn");
> > $myPage->set_charset("UTF-8", "../GSM0338.TXT");
> > //$myPage->use_simulator();
> > $myPage->set_title("");
> > $myPage->set_waphome("");
> > $myPage->set_css("mycss.css");
> >
> > $wurfl = new tera_wurfl();
> >
$wurfl->GetDeviceCapabilitiesFromAgent($_SERVER['HTTP_USER_AGENT'],true);
> > $capa = $wurfl->capabilities;
> > $devicename = $capa['product_info']['brand_name'] . " " .
> > $capa['product_info']['model_name'];
> >
> > ...
> > ...
> > ..
> > ..
> > .
> > .......
> > $myPage->create_page();
> >
>