[..snip..]
>
> Hi,
>
> Have you tried enabling SQL debug to see what INSERT statement it is using?
Yep. And I see something like:
INSERT INTO... ('created') VALUES ('...')
So. This code working properly in neighbourg directory...
>
> Some comments about your code:
>
> - $this->render() executes by default (if autoRender is set to true) so you
> can probably just do if ($this->data) to check if there's anything
> submitted. If not, it will render() by default (right now you're doing if
> (empty($this->params['data'])) { ... } else { ... }.
> - You don't need to do: $this->set( 'data', $this->data ) ... $this->data
> is available from the view automatically.
Thank's
>
> Hope this helps.
Only adding if (! empty ($this->params['data'])) help me. But why
doesn't working model validation (body, title cannot been empty) I
don't understand.
So in SQL I see how adding EMPTY record...
>
> - Gonzalo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---