<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>[CakePHP]DebugKitとQdmailを一緒に使うときの注意 へのコメント</title>
	<atom:link href="http://www.happyquality.com/2009/07/10/1001.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://www.happyquality.com/2009/07/10/1001.htm</link>
	<description>CakePHPとかEC-CUBEとかEclipseとか愛とか勇気とか友達とかのブログ</description>
	<lastBuildDate>Thu, 02 Feb 2012 22:04:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>RND より</title>
		<link>http://www.happyquality.com/2009/07/10/1001.htm/comment-page-1#comment-356</link>
		<dc:creator>RND</dc:creator>
		<pubDate>Thu, 28 Oct 2010 10:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.happyquality.com/?p=1001#comment-356</guid>
		<description>自分も同じ症状で困っていましたが、解決したので共有します。
Controller::renderを参考にして修正しました。

@@ -3812,12 +3812,19 @@ class QdmailComponent extends QdmailUserFunc{
                        $target_charset = $this-&gt;charset_content;
                }
                if( !class_exists ( $this-&gt;Controller-&gt;view ) ){
-                   if( !$this-&gt;import( &#039;View&#039; , $this-&gt;view ) ){
+                 if( !$this-&gt;import( &#039;View&#039; , $this-&gt;Controller-&gt;view ) ){
                                return $this-&gt;errorGather(&#039;QdmailCakePHP View Load Error , the name is \&#039;&#039;.$this-&gt;view.&#039;\&#039;&#039;,__LINE__);
                        }
                }
                $type = strtolower( $type );
-           $view = &amp; new $this-&gt;Controller-&gt;view( $this-&gt;Controller , false );
+         $viewClass = $this-&gt;Controller-&gt;view;
+         if ($viewClass != &#039;View&#039;) {
+                 if (strpos($viewClass, &#039;.&#039;) !== false) {
+                         list($plugin, $viewClass) = explode(&#039;.&#039;, $viewClass);
+                 }
+                 $viewClass = $viewClass . &#039;View&#039;;
+         }
+         $view = &amp; new $viewClass( $this-&gt;Controller , false );
                $view-&gt;layout = $this-&gt;layout;
                $mess = null;</description>
		<content:encoded><![CDATA[<p>自分も同じ症状で困っていましたが、解決したので共有します。<br />
Controller::renderを参考にして修正しました。</p>
<p>@@ -3812,12 +3812,19 @@ class QdmailComponent extends QdmailUserFunc{<br />
                        $target_charset = $this-&gt;charset_content;<br />
                }<br />
                if( !class_exists ( $this-&gt;Controller-&gt;view ) ){<br />
-                   if( !$this-&gt;import( &#8216;View&#8217; , $this-&gt;view ) ){<br />
+                 if( !$this-&gt;import( &#8216;View&#8217; , $this-&gt;Controller-&gt;view ) ){<br />
                                return $this-&gt;errorGather(&#8216;QdmailCakePHP View Load Error , the name is \&#8221;.$this-&gt;view.&#8217;\&#8221;,__LINE__);<br />
                        }<br />
                }<br />
                $type = strtolower( $type );<br />
-           $view = &amp; new $this-&gt;Controller-&gt;view( $this-&gt;Controller , false );<br />
+         $viewClass = $this-&gt;Controller-&gt;view;<br />
+         if ($viewClass != &#8216;View&#8217;) {<br />
+                 if (strpos($viewClass, &#8216;.&#8217;) !== false) {<br />
+                         list($plugin, $viewClass) = explode(&#8216;.&#8217;, $viewClass);<br />
+                 }<br />
+                 $viewClass = $viewClass . &#8216;View&#8217;;<br />
+         }<br />
+         $view = &amp; new $viewClass( $this-&gt;Controller , false );<br />
                $view-&gt;layout = $this-&gt;layout;<br />
                $mess = null;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

