<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>su-kun1899</author_name>
  <author_url>https://blog.hatena.ne.jp/su-kun1899/</author_url>
  <blog_title>ジムには乗りたい</blog_title>
  <blog_url>https://su-kun1899.hatenablog.com/</blog_url>
  <categories>
    <anon>CakePHP</anon>
  </categories>
  <description>概要 CakePHP には独自に定義したカスタム Validation を使う方法がいくつかある。 Default のバリデーションプロバイダーを差し替えることで、アプリケーション全体で使うようなルールを追加しやすくする。 例えば「会員IDは 0 埋めを含む8桁の数字」のようなカスタムバリデーションを使う場合、下記のような形で呼び出せるようにする。 $validator = new AppValidator(); $validator-&gt;memberId('member_id', 'member_id は8桁の数字で指定してください'); Validation を拡張したクラスを作る Vali…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsu-kun1899.hatenablog.com%2Fentry%2F2021%2F04%2F05%2F090000&quot; title=&quot;CakePHP でカスタム Validation を追加しやすくする #cakephp - ジムには乗りたい&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>2021-04-05 09:00:00</published>
  <title>CakePHP でカスタム Validation を追加しやすくする #cakephp</title>
  <type>rich</type>
  <url>https://su-kun1899.hatenablog.com/entry/2021/04/05/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
