;
> change to:
>
> $images = $this->find('all', $conditions);
>
> K
>
>
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
>
> Of adam_g2000
> Sent: Thursday, February 24, 2011 4:36 PM
> To: CakePHP
bject: Re: afterDelete not running as intended
Hi again Jeremy!
Thanks for that, there's my sanity check! I've done that, it's now
sitting in my Images Model. Unfortunately, nothing happens still
Here's the entire model, am I still doing something stupid?
arra
Hi again Jeremy!
Thanks for that, there's my sanity check! I've done that, it's now
sitting in my Images Model. Unfortunately, nothing happens still
Here's the entire model, am I still doing something stupid?
array(
'notempty' => array(
er_id' => $this->owner_id,
> $currentModel.'.order >' => $record[$currentModel]['order']
> ));
>
> K
>
>
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
>
Of adam_g2000
Sent: Thursday, February 24, 2011 12:07 AM
To: CakePHP
Subject: afterDelete not running as intended
Hi Guys,
I have this method I've written...
function tidyup() {
//Re-sort orders to remove the 'hole'
// Create an array of the image table contents of I
Is this in a model or a controller? I am guessing it's in a controller because
you have a redirect statement. To make it run as afterDelete you need to move
it into the model (afterDelete is a model callback) and then you'd need to
remove the redirect statement because it will error.
Jeremy Bur
Hi Guys,
I have this method I've written...
function tidyup() {
//Re-sort orders to remove the 'hole'
// Create an array of the image table contents of IDs and Orders.
$conditions = array(
'fields' => array('id','order'),