Ok i found a way with a model and :
var $useTable = false;
But now i get this error?
Notice: Use of undefined constant VALID_EMAIL - assumed 'VALID_EMAIL'
in E:\xampp\htdocs\portfolio\cake\dispatcher.php on line 158
Notice: Use of undefined constant VALID_NOT_EMPTY - assumed
'VALID_NOT_EMPTY' in E:\xampp\htdocs\portfolio\cake\dispatcher.php on
line 158
Notice: Use of undefined constant VALID_NOT_EMPTY - assumed
'VALID_NOT_EMPTY' in E:\xampp\htdocs\portfolio\cake\dispatcher.php on
line 158
This is the entire model
<?php
class Contact extends AppModel {
var $name = 'Contact';
// Let Cake know there is not a DB Table
var $useTable = false;
// Validators used
var $validate = array(
'email' => VALID_EMAIL,
'subject' => VALID_NOT_EMPTY,
'body' => VALID_NOT_EMPTY
);
}
?>
Do i need to add anything to app_model.php to make it work ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---