<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>cakephp</anon>
  </categories>
  <description>502 Bad Gateway1. app/controllers/components/に、以下のような感じで書く &lt;?php class HogeComponent extends Object { function doComplexOperation($amount1, $amount2) { return $amount1 + $amount2; } } ?&gt; 2. app/app_controllers.phpに、以下のように記述する var $components = array('Hoge', 'Session'); なお、コントローラの beforeFilter() メソッド…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20120407%2F1333807564&quot; title=&quot;独自のコンポーネントの定義 - by shigemk2&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-07 23:06:04</published>
  <title>独自のコンポーネントの定義</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20120407/1333807564</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
