Do you have code in your post.php model declaring how you want to
validate the title and body?  Something like:

$var validate => array(
  'title' => VALID_NOT_EMPTY,
  'body' => VALID_NOT_EMPTY
);

Also, this is assuming you're using Cake 1.1, 1.2 handles errors a
little differently, either using $form->input instead of $html->input
(which includes the error tag), or $form->error instead of $html-
>tagErrorMsg

For the layout problem, you probably want to change /app/views/layouts/
default.thtml

The manual (manual.cakephp.org) is pretty helpful.  I'd suggest going
over the whole thing.

On May 16, 8:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> another question:
> how to change default layout with the title "CakePHP: the PHP Rapid
> Development Framework"?
> i wish the page only show my own views .
>
> thsnks


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to