<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiro_y</author_name>
  <author_url>https://blog.hatena.ne.jp/hiro_y/</author_url>
  <blog_title>hiroyのブログ</blog_title>
  <blog_url>https://hiroy.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>symfonyを真似て、Moony_ActionクラスにrenderIf/redirectIfメソッドを追加してみた。renderUnless/redirectUnlessメソッドは作ってない。 &lt;?php class Foo extends Moony_Action { var $name; function validate(&amp;$v) { $v-&gt;validateRequired($this-&gt;name, '名前は必ず入力してください'); $this-&gt;renderIf($v-&gt;hasError(), 'error.php'); } } ?&gt; これでvalidationエラー時の処理が1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiroy.hatenadiary.jp%2Fentry%2F20070308%2F1173317387&quot; title=&quot;renderIf/redirectIfメソッド - hiroyのブログ&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>2007-03-08 10:29:47</published>
  <title>renderIf/redirectIfメソッド</title>
  <type>rich</type>
  <url>https://hiroy.hatenadiary.jp/entry/20070308/1173317387</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
