Hi all, Im working on a contact us/feedback form that doesn't have an underlying model. Basically what I'm trying to do is just to ensure that all the fields in the form aren't empty. In my class I have the function:
class Report extends AppModel { var $name = 'Report'; } class ReportController extends AppController { var $name = 'Report'; var $uses = null; function report($arg_1) { if (empty($arg_1)) { $this->Report->invalidate('field1'); } } } Im getting errors like: Fatal error: Call to a member function invalidate() on a non-object. Am I missing something? or do I just need to provide a table in order for me to use invalidate? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---