Deprecated: Non-static method adsensem::filter_ads() should not be called statically in /home/araki/blog.ceed.jp/wp-includes/plugin.php on line 192
Deprecated: Non-static method adsensem::filter_ad_callback() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 198
Deprecated: Non-static method adsensem::filter_ad_callback() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 201
Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 524
Notice: Array to string conversion in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 701
CakePHPを使っていて、データソースとしてDBからではなく外部のAPIからデータを取りたい事があります。
今までApiComponentなんていうコンポーネントを作って
$this->Api->get('path_to_API');
みたいにしていましたが、こんな方法が用意されていたようです。(1.2だけなのかな…)
uses('Xml'); $xml = new Xml("/path/to/xml"); $xml_array = Set::reverse($xml);
http://www.syuhari.jp/blog/archives/827で紹介されていました。