]['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
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?
?php
class images extends AppModel {
var $name = 'images';
var
@googlegroups.com] On Behalf
Of adam_g2000
Sent: Thursday, February 24, 2011 4:36 PM
To: CakePHP
Subject: 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
-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
Subject: Re: afterDelete not running as intended
Hi again Jeremy!
Thanks for that, there's my sanity check! I've done
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'),
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
: 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 IDs and Orders.
$conditions = array(
'fields' = array