try this to see if its a valitation problem:
if ( $this->Host->save($this->data) ){
// it saved
}else{
echo $errors = $this->ModelName->invalidFields();
}
or maybe some wrong field name you got in your array
On 5 out, 10:15, james <[email protected]> wrote:
> I'm trying to run a save on certain fields from my model and for some
> reason it isnt working -
>
> similarly to an edit im calling
>
> $this->Host->save($this->data)
>
> and the array in $this->data looks like
>
> Array
> (
> [Host] => Array
> (
> [web] => 25
> [prev_cost_of_sale] =>
> [extras] =>
> [price_A4s] =>
> [previous_price_A4s] =>
> [previous_adverts] =>
> [previous_appts] =>
> )
>
> )
>
> can anyone see what im doing wrong?
>
> thanks
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en