Re: Do not save Modified
If modified is set in your Data then that value will be saved in the database
Rest I leave you to figure out ;-)
Cheers
Tarique
On Tue, Feb 15, 2011 at 10:32 AM, Krissy Masters
<naked.cake.baker@gmail.com> wrote:
> Does anyone know if it is possible to not auto save the Modified field?
>
> I am doing a drag / drop re-order and this updates each records" order"
> field therefor editing the modified timestamp.
> Might confuse the end user since the average person will not think they
> actually edited the record yet every record now says Modified 10 mins ago.
>
> function _reOrder($currentModel, $order) {
>
> $count = -1;//count will start at zero
> foreach ( $order as $k => $v ) {
> $count++;
> $this->$currentModel->id = $v;
> $this->$currentModel->saveField('order', $count);
>
> }
> }
>
> Thanks,
>
> K
>
> --
> Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
>
--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home