<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>absg</author_name>
  <author_url>https://blog.hatena.ne.jp/absg/</author_url>
  <blog_title>やったこと</blog_title>
  <blog_url>https://absg.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>CakePHP3でユーザーがＰＣかモバイルかを判定する方法です。お好きなコントローラー内で以下のようにして判定できます。超簡単ですね・・。 if($this-&gt;request-&gt;is('mobile')){ $this-&gt;viewBuilder()-&gt;layout('モバイル用レイアウト'); }else{ $this-&gt;viewBuilder()-&gt;layout('PC用レイアウト'); }以上！</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fabsg.hatenablog.com%2Fentry%2F2016%2F09%2F29%2F184037&quot; title=&quot;【CakePHP3】ＰＣかモバイルか判定する方法！ - やったこと&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>2016-09-29 18:40:37</published>
  <title>【CakePHP3】ＰＣかモバイルか判定する方法！</title>
  <type>rich</type>
  <url>https://absg.hatenablog.com/entry/2016/09/29/184037</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
