<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hidehara</author_name>
  <author_url>https://blog.hatena.ne.jp/hidehara/</author_url>
  <blog_title>AWS / PHP / Python ちょいメモ</blog_title>
  <blog_url>https://hideharaaws.hatenablog.com/</blog_url>
  <categories>
    <anon>CakePHP2.x</anon>
  </categories>
  <description>何度も調べてしまっているのでメモ。CakePHP使って開発していると、URLをフレームワークにお任せするシーンが多く、いざ取得したいときに困ったりしませんか？Htmlヘルパーのurlメソッド or Routerクラスのurlメソッドで取得が出来ます。それぞれ第二引数がtrueだと、 http://～ のフルパスが返ってきます。 // ビューの場合 $this-&gt;Html-&gt;url('/controller/action/', true); // コントローラー、モデルの場合 Router::url('/controller/action/', true); Router::url(); // …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhideharaaws.hatenablog.com%2Fentry%2F2014%2F02%2F10%2F111902&quot; title=&quot;CakePHP2.x で パス・URLを取得 - AWS / PHP / Python ちょいメモ&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>2014-02-10 11:19:02</published>
  <title>CakePHP2.x で パス・URLを取得</title>
  <type>rich</type>
  <url>https://hideharaaws.hatenablog.com/entry/2014/02/10/111902</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
