●app/vendors配下に以下を設置
PEAR.php PEAR5.php Net/UserAgent/Mobile/ Net/UserAgent/Mobile/Mobile.php
●app/vendors/pear_ini.phpを作成
<?php
ini_set('include_path', dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
?>
●以下のように呼び出す
App::import('Vendor', 'pear_ini');
App::import('Vendor', 'Net/UserAgent/Mobile', array('file' => 'Net' . DS . 'UserAgent' . DS . 'mobile.php'));
このwikiの更新情報RSS