You need to create a schema in the model. I have done this in a couple
of projects where no tables exists for the model yet I needed to
validate some user input.  See the previous thread below.

http://groups.google.com/group/cake-php/browse_thread/thread/3a028fb7f1cc2297

On Mar 29, 10: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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to