<!-- File: /app/views/posts/add.ctp -->

<h1>Add Post</h1>
<?php
echo $form->create('Post');
echo $form->input('title');
echo $form->input('body', array('rows' => '3'));
echo $form->end('Save Post');
?>

<?php
class Post extends AppModel
{
 var $name = 'Post';
 var $validate = array(
        'title'=>VALID_NOT_EMPTY,
        'body'=>VALID_NOT_EMPTY
    );
}
?>

If i am not enter any value then it says "This field cannot be left blank"
but i want to show a message "Please enter Title"
How do i do?

Regards,
Dhileepen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to