<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Basic Model Edits in Yii</title> <atom:link href="http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/feed/" rel="self" type="application/rss+xml" /><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/</link> <description>Translating Geek Into English</description> <lastBuildDate>Thu, 09 Feb 2012 15:50:46 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Javed Boqo</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-22481</link> <dc:creator>Javed Boqo</dc:creator> <pubDate>Thu, 09 Feb 2012 07:04:31 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-22481</guid> <description>Thanks for your kind help but what about views and controller. If I have made changes in view and controller should I change them manually?</description> <content:encoded><![CDATA[<p>Thanks for your kind help but what about views and controller. If I have made changes in view and controller should I change them manually?</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-22449</link> <dc:creator>Larry</dc:creator> <pubDate>Wed, 08 Feb 2012 22:22:59 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-22449</guid> <description>If you didn&#039;t modify the Model, you can just regenerate it. If you have already modified the Model, then you can just edit it to recognize the database changes. Or, you can copy the Model you edited, regenerate the Model, and merge the two as appropriate.</description> <content:encoded><![CDATA[<p>If you didn&#8217;t modify the Model, you can just regenerate it. If you have already modified the Model, then you can just edit it to recognize the database changes. Or, you can copy the Model you edited, regenerate the Model, and merge the two as appropriate.</p> ]]></content:encoded> </item> <item><title>By: Javed</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-22388</link> <dc:creator>Javed</dc:creator> <pubDate>Wed, 08 Feb 2012 07:48:59 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-22388</guid> <description>I am new to YII framework. I have just followed the basic concept of creating database and using GII to create model classes. After creating model classes I have changed my database table e.g. inserted new field and now how can get its effect in model classes(views etc)?  When I have regenerate Model then it overwrite my existing work which have already done in model. I need some thing like just refresh my model and it will show all newly made changes from database.</description> <content:encoded><![CDATA[<p>I am new to YII framework. I have just followed the basic concept of creating database and using GII to create model classes. After creating model classes I have changed my database table e.g. inserted new field and now how can get its effect in model classes(views etc)?  When I have regenerate Model then it overwrite my existing work which have already done in model. I need some thing like just refresh my model and it will show all newly made changes from database.</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-19442</link> <dc:creator>Larry</dc:creator> <pubDate>Fri, 30 Dec 2011 14:23:38 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-19442</guid> <description>Thanks, Abdelaziz, for the nice words and for helping out!</description> <content:encoded><![CDATA[<p>Thanks, Abdelaziz, for the nice words and for helping out!</p> ]]></content:encoded> </item> <item><title>By: Abdelaziz Bennouna</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-19391</link> <dc:creator>Abdelaziz Bennouna</dc:creator> <pubDate>Thu, 29 Dec 2011 20:58:52 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-19391</guid> <description>Hello
To the risk of being redundant, thanks A LOT Larry for all your efforts in this tutorial and the rest of MVC/Yii-related posts. It made my day and I&#039;ve elected Yii as the #1 PHP framework for my business needs.
@Jean-Pierre, the default date type is &#039;MM/dd/yyyy&#039; (http://www.yiiframework.com/wiki/56/). If you want a different format, e.g. without leading zeros, you use:
&lt;code&gt;array(&#039;hireDate, leaveDate&#039;, &#039;date&#039;, &#039;format&#039;=&gt;&#039;M/d/yyyy&#039;),&lt;/code&gt;
Like many posters, I&#039;ve noticed that MySQL doesn&#039;t store anything with the default code. So we have to convert the date to the DB&#039;s one. In my case, it&#039;s yyyy-MM-dd HH:mm:ss.
Check http://stackoverflow.com/questions/5137988/yii-date-hour-minute-datetime-string-mysql-datetime for an implementation.</description> <content:encoded><![CDATA[<p>Hello<br
/> To the risk of being redundant, thanks A LOT Larry for all your efforts in this tutorial and the rest of MVC/Yii-related posts. It made my day and I&#8217;ve elected Yii as the #1 PHP framework for my business needs.<br
/> @Jean-Pierre, the default date type is &#8216;MM/dd/yyyy&#8217; (<a
href="http://www.yiiframework.com/wiki/56/" rel="nofollow">http://www.yiiframework.com/wiki/56/</a>). If you want a different format, e.g. without leading zeros, you use:<br
/> <code>array('hireDate, leaveDate', 'date', 'format'=&gt;'M/d/yyyy'),</code><br
/> Like many posters, I&#8217;ve noticed that MySQL doesn&#8217;t store anything with the default code. So we have to convert the date to the DB&#8217;s one. In my case, it&#8217;s yyyy-MM-dd HH:mm:ss.<br
/> Check <a
href="http://stackoverflow.com/questions/5137988/yii-date-hour-minute-datetime-string-mysql-datetime" rel="nofollow">http://stackoverflow.com/questions/5137988/yii-date-hour-minute-datetime-string-mysql-datetime</a> for an implementation.</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-15299</link> <dc:creator>Larry</dc:creator> <pubDate>Fri, 11 Nov 2011 14:38:25 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-15299</guid> <description>Neither password1 nor password2 are part of the table, but by adding that line, you can virtually create those properties and apply a validation rule to them.</description> <content:encoded><![CDATA[<p>Neither password1 nor password2 are part of the table, but by adding that line, you can virtually create those properties and apply a validation rule to them.</p> ]]></content:encoded> </item> <item><title>By: B Dutta</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-14614</link> <dc:creator>B Dutta</dc:creator> <pubDate>Sun, 06 Nov 2011 05:43:10 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-14614</guid> <description>Each of the tutorials in the series, holds up to the promise of being clear, focussed and simple.Reading some of the comments here I understand that the following rule, is not required in the Emp-Dept example that this tutorial uses as a basis, but is it possible to elaborate the usage a bit more, especially because usage of fieldnames like &#039;password1&#039; and &#039;password2&#039; gives the impression that both come from Table, while, I believe one would come from table (stored during registration), and the other is from the Login validation form ?array(&#039;password1&#039;, &#039;compare&#039;, &#039;compareAttribute&#039;=&gt;&#039;password2&#039;, &#039;on&#039;=&gt;&#039;register&#039;),Anyhow, I know that I am demanding without probably being sufficiently grateful. Maybe if you plan another update sometime.</description> <content:encoded><![CDATA[<p>Each of the tutorials in the series, holds up to the promise of being clear, focussed and simple.</p><p>Reading some of the comments here I understand that the following rule, is not required in the Emp-Dept example that this tutorial uses as a basis, but is it possible to elaborate the usage a bit more, especially because usage of fieldnames like &#8216;password1&#8242; and &#8216;password2&#8242; gives the impression that both come from Table, while, I believe one would come from table (stored during registration), and the other is from the Login validation form ?</p><p>array(&#8216;password1&#8242;, &#8216;compare&#8217;, &#8216;compareAttribute&#8217;=&gt;&#8217;password2&#8242;, &#8216;on&#8217;=&gt;&#8217;register&#8217;),</p><p>Anyhow, I know that I am demanding without probably being sufficiently grateful. Maybe if you plan another update sometime.</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-13128</link> <dc:creator>Larry</dc:creator> <pubDate>Tue, 11 Oct 2011 02:22:18 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-13128</guid> <description>Thank you very much, Brian.</description> <content:encoded><![CDATA[<p>Thank you very much, Brian.</p> ]]></content:encoded> </item> <item><title>By: B</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-13094</link> <dc:creator>B</dc:creator> <pubDate>Mon, 10 Oct 2011 02:02:51 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-13094</guid> <description>Wow, this tutorial is exactly what I&#039;ve been missing in the MVC framework world.  I&#039;ve struggled through CodeIgnitor and Zend and could barely understand what I was trying to do.  You&#039;ve made it very clear and I appreciate it!  Thank you!B</description> <content:encoded><![CDATA[<p>Wow, this tutorial is exactly what I&#8217;ve been missing in the MVC framework world.  I&#8217;ve struggled through CodeIgnitor and Zend and could barely understand what I was trying to do.  You&#8217;ve made it very clear and I appreciate it!  Thank you!</p><p>B</p> ]]></content:encoded> </item> <item><title>By: Larry</title><link>http://www.larryullman.com/2009/11/10/basic-model-edits-in-yii/comment-page-1/#comment-13027</link> <dc:creator>Larry</dc:creator> <pubDate>Sat, 08 Oct 2011 15:56:09 +0000</pubDate> <guid
isPermaLink="false">http://www.larryullman.com/?p=657#comment-13027</guid> <description>Thanks for the nice words. As for your first question, you need to use PHP and/or JavaScript to make sure that the user-provided date is of the right format. Or set the format in the rules. As for yiic, you haven&#039;t really provided enough information here for me to answer the question, and the comments to a blog aren&#039;t really a good spot for debugging help. If you need assistance, please use either my support forums or the Yii support forums.</description> <content:encoded><![CDATA[<p>Thanks for the nice words. As for your first question, you need to use PHP and/or JavaScript to make sure that the user-provided date is of the right format. Or set the format in the rules. As for yiic, you haven&#8217;t really provided enough information here for me to answer the question, and the comments to a blog aren&#8217;t really a good spot for debugging help. If you need assistance, please use either my support forums or the Yii support forums.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.larryullman.com @ 2012-02-09 16:37:31 by W3 Total Cache -->
