It's whitespace at the end of the file. Check with:
http://bin.cakephp.org/saved/33005

Also use lowercase file names, Windogs filesystems are case
insensitive but *nix file systems are case sensitive.

On Fri, Jul 18, 2008 at 10:04 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I read this post regarding multiple validation rulesets in a module:
>
> http://groups.google.com/group/cake-php/browse_thread/thread/dd16f12107ad3853/5e77f0e756a6d050?lnk=gst&q=multiple+form+validation#5e77f0e756a6d050
>
> I'm having problems getting this to work.  I've created a behavior
> Multivalidatable.php and stored it app/model/behaviors I've added var
> $actsAs = array('Multivalidatable'); to my model and i've created some
> validation rules:
>
>                var $validationSets = array(
>                        'register' => array(
>                                'firstname' => array(
>                                        array(
>                                                'allowEmpty' => false,
>                                                'required' => true,
>                                                'rule' => 'alphaNumeric',
>                                                'message' => 'Firstname should 
> only contain alpha-numeric
> characters.'
>                                        ),
>                                        array(
>                                                'rule' => array('between', 2, 
> 25),
>                                                'message' => 'Firstname should 
> be between 2 and 25 characters
> long.'
>                                        )
>                                ),.............
>
> I keep getting this error:
>
> Cannot modify header information - headers already sent by (output
> started at C:\xampp\htdocs\apps\courses\app\models\behaviors
> \Multivalidatable.php:70)
>
> Any help would be appreciated.  Am i naming the behavior correctly?
>
> Regards
>
> R
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to