assuming you model is called User and you have all the validation
rules applied.
in your controller you need to specify
var $helpers = array('Html', 'Form');
This gives you access to the helpers in the view.
To create a form in the view
<?php
echo $form->create('User' ,array('action' => 'add')); //this creates
the <form action="/users/add">
echo $form->input('User.email'); //this creates an input field inside
a div with all the error messages automagically inserted.
echo $form->end('Submit');
?>
Try it and see what ouput you get in the source. It will make sense
then
On Apr 21, 4:26 pm, Chez17 <[EMAIL PROTECTED]> wrote:
> I have solved the first part of my question, but it seems that nobody
> can answer my second question. How do I access that 'Profile must be
> unique' message in my view? I can't find how to do it anywhere.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---