今日からCakePHP(1.2)を使って、新しいサービスを作り始めてみた。 今日やった事のメモ。 Net_UserAgent_MobileをcakePHP1.2RC2で使う [cakePHP1.2]モバイルサイトとPCの切り分け その2 CakePHP 1.2で携帯用ビューを表示する CakePHP 携帯専用サイトを作成する 上記の記事を参考にして、以下のコンポーネントを作成。 app/controllers/components/mobile.php App::import('Vendor', 'pear_ini'); App::import('Vendor', 'Net/UserAgent/Mobile', array('file' => 'Net' . DS . 'UserAgent' . DS . 'Mobile.php')); class MobileComponent exte