<?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>“ZheX Blog” 的评论</title>
	<atom:link href="http://www.zhex.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zhex.net</link>
	<description>Idea来源于生活的经验</description>
	<lastBuildDate>Sun, 07 Mar 2010 06:54:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>leeo 关于 教程翻译：用 Yii Framework 编写博客 &#8211; 1 的评论</title>
		<link>http://www.zhex.net/blog-tutorial-for-yii-framework-1.html/comment-page-1#comment-94</link>
		<dc:creator>leeo</dc:creator>
		<pubDate>Sun, 07 Mar 2010 06:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.limnlife.co.nz/web_zhex/?p=11#comment-94</guid>
		<description>很好的Yii学习文章，:)</description>
		<content:encoded><![CDATA[<p>很好的Yii学习文章，:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>ZheX 关于 如何在 Yii 配置中为 MySQL 设置自定义端口 的评论</title>
		<link>http://www.zhex.net/set-mysql-port-in-yii-config.html/comment-page-1#comment-82</link>
		<dc:creator>ZheX</dc:creator>
		<pubDate>Wed, 27 Jan 2010 02:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhex.net/?p=319#comment-82</guid>
		<description>我没有用过postgresql，不过方法应该都差不多</description>
		<content:encoded><![CDATA[<p>我没有用过postgresql，不过方法应该都差不多</p>
]]></content:encoded>
	</item>
	<item>
		<title>刘 关于 如何在 Yii 配置中为 MySQL 设置自定义端口 的评论</title>
		<link>http://www.zhex.net/set-mysql-port-in-yii-config.html/comment-page-1#comment-81</link>
		<dc:creator>刘</dc:creator>
		<pubDate>Wed, 27 Jan 2010 02:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhex.net/?p=319#comment-81</guid>
		<description>postgresql呢</description>
		<content:encoded><![CDATA[<p>postgresql呢</p>
]]></content:encoded>
	</item>
	<item>
		<title>ZheX 关于 关于 的评论</title>
		<link>http://www.zhex.net/about/comment-page-1#comment-63</link>
		<dc:creator>ZheX</dc:creator>
		<pubDate>Wed, 30 Dec 2009 09:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.limnlife.co.nz/web_zhex/?page_id=2#comment-63</guid>
		<description>你可以加入qq群：80196965， 非常活跃的yii框架讨论群。</description>
		<content:encoded><![CDATA[<p>你可以加入qq群：80196965， 非常活跃的yii框架讨论群。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Cherry 关于 关于 的评论</title>
		<link>http://www.zhex.net/about/comment-page-1#comment-62</link>
		<dc:creator>Cherry</dc:creator>
		<pubDate>Wed, 30 Dec 2009 09:49:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.limnlife.co.nz/web_zhex/?page_id=2#comment-62</guid>
		<description>yii框架，正在学习，可有联系方式，讨论点东西</description>
		<content:encoded><![CDATA[<p>yii框架，正在学习，可有联系方式，讨论点东西</p>
]]></content:encoded>
	</item>
	<item>
		<title>maxubo 关于 Yii GridView 初探 的评论</title>
		<link>http://www.zhex.net/yii-gridview-quickview.html/comment-page-1#comment-60</link>
		<dc:creator>maxubo</dc:creator>
		<pubDate>Fri, 25 Dec 2009 07:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhex.net/?p=369#comment-60</guid>
		<description>非常感谢。问题处理了，才来回复
一个是IE的问题还有一个是我的服务器也有问题。
感谢你的回复。</description>
		<content:encoded><![CDATA[<p>非常感谢。问题处理了，才来回复<br />
一个是IE的问题还有一个是我的服务器也有问题。<br />
感谢你的回复。</p>
]]></content:encoded>
	</item>
	<item>
		<title>ZheX 关于 Yii GridView 初探 的评论</title>
		<link>http://www.zhex.net/yii-gridview-quickview.html/comment-page-1#comment-59</link>
		<dc:creator>ZheX</dc:creator>
		<pubDate>Thu, 17 Dec 2009 08:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhex.net/?p=369#comment-59</guid>
		<description>刚才我试了下，普通的delete应该也没问题, 下面是我自己的delete action
&lt;pre lang=&quot;php&quot;&gt;
public function actionDelete() 
{
    if (Yii::app()-&gt;request-&gt;isPostRequest) {
        $this-&gt;loadUser()-&gt;delete();
        $this-&gt;redirect(array(&#039;user/index&#039;));
    }
}
&lt;/pre&gt;
我想你不能删除的原因应该是没有设置对url，具体问题你查看下你的出错信息</description>
		<content:encoded><![CDATA[<p>刚才我试了下，普通的delete应该也没问题, 下面是我自己的delete action</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> actionDelete<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>Yii<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">request</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isPostRequest</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">delete</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">redirect</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user/index'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>我想你不能删除的原因应该是没有设置对url，具体问题你查看下你的出错信息</p>
]]></content:encoded>
	</item>
	<item>
		<title>maxubo 关于 Yii GridView 初探 的评论</title>
		<link>http://www.zhex.net/yii-gridview-quickview.html/comment-page-1#comment-58</link>
		<dc:creator>maxubo</dc:creator>
		<pubDate>Thu, 17 Dec 2009 07:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhex.net/?p=369#comment-58</guid>
		<description>非常感谢您的回复。
您的意思是默认的crud生成的delete方法是不能够由gridview来调用的。
可是我不会写Ajax delete方法。您能不能给个例子。
另外：如果使用默认的crud方法在firefox里面是可以执行的。
在IE7里面无法执行。
请指点。
给您添麻烦了。</description>
		<content:encoded><![CDATA[<p>非常感谢您的回复。<br />
您的意思是默认的crud生成的delete方法是不能够由gridview来调用的。<br />
可是我不会写Ajax delete方法。您能不能给个例子。<br />
另外：如果使用默认的crud方法在firefox里面是可以执行的。<br />
在IE7里面无法执行。<br />
请指点。<br />
给您添麻烦了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>maxubo 关于 Yii GridView 初探 的评论</title>
		<link>http://www.zhex.net/yii-gridview-quickview.html/comment-page-1#comment-57</link>
		<dc:creator>maxubo</dc:creator>
		<pubDate>Thu, 17 Dec 2009 05:42:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhex.net/?p=369#comment-57</guid>
		<description>谢谢。
明白了，是默认crud的方法不支持ajax调用必须写一个支持Ajax调用的方法是吧。
应该是如下的格式。
public function actionDelr(){
	$confirmation
	$.ajax({
		type: &#039;POST&#039;,
		url: $(this).attr(&#039;href&#039;),
		success: function() {
			$.fn.yiiGridView.update(&#039;{$this-&gt;grid-&gt;id}&#039;);
		},
		error: function(XMLHttpRequest, textStatus, errorThrown) {
			alert(XMLHttpRequest.responseText);
		},
	});
	return false;
	
}</description>
		<content:encoded><![CDATA[<p>谢谢。<br />
明白了，是默认crud的方法不支持ajax调用必须写一个支持Ajax调用的方法是吧。<br />
应该是如下的格式。<br />
public function actionDelr(){<br />
	$confirmation<br />
	$.ajax({<br />
		type: &#8216;POST&#8217;,<br />
		url: $(this).attr(&#8216;href&#8217;),<br />
		success: function() {<br />
			$.fn.yiiGridView.update(&#8216;{$this-&gt;grid-&gt;id}&#8217;);<br />
		},<br />
		error: function(XMLHttpRequest, textStatus, errorThrown) {<br />
			alert(XMLHttpRequest.responseText);<br />
		},<br />
	});<br />
	return false;</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>ZheX 关于 Yii GridView 初探 的评论</title>
		<link>http://www.zhex.net/yii-gridview-quickview.html/comment-page-1#comment-56</link>
		<dc:creator>ZheX</dc:creator>
		<pubDate>Thu, 17 Dec 2009 01:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zhex.net/?p=369#comment-56</guid>
		<description>大概是我没表达清楚， gridview使用ajax调用delete方法，而你crud生成的delete方法应该用的是普通的post/get然后redirect的方式，你可以再建立一个ajax delete方法来支持gridview的ajax调用</description>
		<content:encoded><![CDATA[<p>大概是我没表达清楚， gridview使用ajax调用delete方法，而你crud生成的delete方法应该用的是普通的post/get然后redirect的方式，你可以再建立一个ajax delete方法来支持gridview的ajax调用</p>
]]></content:encoded>
	</item>
</channel>
</rss>
