For example (If I have understood right)
Define a dummy model
custom.php
-------------------------
<?php
// generic dummy class with no db connection
class Custom extends AppModel {
var $name = "Custom";
var $useTable = false;
}
?>
In your view use something like:
<?php echo $html->input('Custom/email'); ?>
<?php echo $html->tagErrorMsg('Custom/email', $emailError); ?>
And in your controller....
if($this->data['Custom']['email'] == '') {
$this->set('emailError', 'Email required');
$this->Custom->invalidate('email');
}
Hope is what you need.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---