Monday, April 30, 2012

Re: Soft Delete

ife() was removed in 2.x. Just change the code to use ternary, eg.
$foo ? $foo : $bar;

On Mon, Apr 30, 2012 at 12:41 AM, Will <will.a.salazar@gmail.com> wrote:
> Trying to do a Soft Delete in CakePHP. I initially googled it and got some
> hits. The first hit was for a SoftDeletable class. I followed all of the
> instructions, however, there is an error in the code, which I do not know
> how to fix since I didn't write it. I could probably email the author but I
> was wondering if any of you here has dealt with this issue.
>
> http://cake-syrup.svn.sourceforge.net/viewvc/cake-syrup/trunk/app/models/behaviors/soft_deletable.php?view=markup
>
> This is the link in which I got the SoftDeleteBehavior class from, However,
> when I refresh my browser I have an error on line 45 that has to do with the
> ife() function.
>
> Can anyone help? Thanks.
>
> --
> 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

--
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

No comments: