Create a tableless model and setup a validation for it.

On Sat, Mar 29, 2008 at 7:56 AM, MarcS <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  in my applications users should be able to import CSV data. Obviously
>  there is not corresponding field in any database table for this
>  textarea.
>  I wanna validate the CSV input and display the errors.
>  I tried $form->input('fieldname',array('error'=>'some error
>  message');
>  but that doesn't work since FormHelper::error which outputs the error
>  message calls $this->tagIsInvalid() to determine if there is an error
>  in that field and doesn't return the error div if the tagIsInvalid
>  returns false, ignoring anything that was passed to input() in
>  $options['error'].
>  Since my input field is not represented in any model, that
>  tagIsInvalid will always return false and no error message will be
>  displayed.
>
>  How can I get around this?
>
>  thanks
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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