Re: validation problem

2008-07-04 Thread Steve W

Have you tried specifying the rule as an array as per the docs?

http://manual.cakephp.org/view/141/email

...
'rule' => array('email', true)


On Jul 4, 10:48 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> is try to validate an emailadres, my fieldname is 'email'.
>
> The code looks like this:
>
> var $validate = array(
> 'email' => array(
> 'rule' => 'email',
> 'message' => 'Please enter valid emailadres'
> )
> );
>
> I doesn't trigger an error, not when left blank, or entering 'sldkjf'.
>
> What's my problem?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Bake fatal error

2007-02-21 Thread Steve W

I had the same problem using bake.php from 1.1.x.x/SVN.

I discovered that Model.php wasn't being included and I added the
following at line 131:

require_once (CORE_PATH.'cake'.DS.'libs'.DS.'model'.DS.'model.php');


On 21 Feb, 17:06, "Michael Gartner" <[EMAIL PROTECTED]> wrote:
> I have the latest nightly build and I also get this error when baking
> a model.
>
> My error reads:
> Fatal error: Class 'Model' not found in C:\Program Files\xampp\cake
> \cake\scripts\bake.php on line 437
>
> and when I try and bake a controller named "Student":
>
> Fatal error: Class 'Student' not found in C:\Program Files\xampp\cake
> \cake\scripts\bake.php on line 1413
>
> The bake in 1.1.13.4450 works fine for me, but not in 1.2.0.4451alpha.
>
> I'm using xampp on XP Pro Sp2.
>
> On Feb 11, 10:15 am, "biesbjerg" <[EMAIL PROTECTED]> wrote:
>
> > Get the nightly build athttp://cakephp.org/downloads/index/nightly/
> > 1.2.x.x
>
> > The bug has been fixed there.
>
> > On Feb 11, 4:33 am, "Jeffrey" <[EMAIL PROTECTED]> wrote:
>
> > > What would cause thiserrorwhen trying to usebaketo create a new
> > > model?
>
> > > Fatalerror: Class 'Model' not found in /Users/jeffreystevison/Sites/
> > > cake/cake/scripts/bake.php on line 435


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---