On Jun 23, 3:25 pm, eliot1785 <stepheneliotde...@gmail.com> wrote:
> I am going through the blog setup tutorial and although I've just used
> the code that was provided, I can still post empty fields. The
> "notEmpty" validation doesn't weed out the empty submission. Any
> ideas?
>
> Here's the model:
>
> <?php
> class Post extends AppModel
> {
> var $name = 'Post';
>
> var $validate = array(
> 'title' => array(
> 'rule' => 'notEmpty'
> ),
> 'body' => array(
> 'rule' => 'notEmpty'
> )
> );}
>
> ?>
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Tuesday, June 23, 2009
Re: notEmpty doesn't work when going through the tutorial
var $validate = array('title' => 'notEmpty', 'body' => 'notEmpty');
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment