Hello,
I have a form that is being submitted via ajax:
add.ctp
<?=$ajax->form(null, 'post', array('update' => 'ajax', 'url' => array
('controller' => 'characters', 'action' => 'add')))?>
<?=$form->input('name', array('label' => __('Character name', true)))?
>
<?=$form->end(__('Create character', true))?>
form is submited fine, validation seems to work, I can see error
message when I do pr($this);
However, I only get a same form with a different value when I submit
it, but I can not see any error messages.
Controller:
function add(){
$this->layout = 'ajax';
if (!empty($this->data)){
if ($this->Character->save($this->data)){
}
}
}
And my model:
var $validate = array(
'name' => array(
'rule' => 'alphaNumeric'
)
);
Any ideas why I cannot see any error messages without echoing them?
Thanks in advance,
faifas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---