Brand new CakePHP user; I just got the installation and it worked a few hours ago (or so I thought.) I followed the blog tutorial and everything went smoothly until I got to the "Adding Messages" section. I thought maybe I made a typo somewhere, so I copied and pasted the code directly from the tutorial, and I still get these errors when I try to go to localhost / cakeBlogTest / posts / add. Can someone help me? I installed the latest stable version of CakePHP.
Warning (512): The HtmlHelper :: input method does not exist [CORE / cake / libs / view / helper.php, line 143]
Warning (512): The HtmlHelper :: tagErrorMsg method does not exist [CORE / cake / libs / view / helper.php, line 143]
Warning (512): The HtmlHelper :: textarea method does not exist [CORE / cake / libs / view / helper.php, line 143]
Warning (512): The HtmlHelper :: submit method does not exist [CORE / cake / libs / view / helper.php, line 143]
EDIT ADD:
I was able to use the $ html-> link in another section of the tutorial, so it seems to find the helpers file. I just looked at the helper file, and input, textarea and submit do exist, but tagErrorMsg does not. Is it possible that the lesson is outdated and uses bits that no longer exist in the current version of CakePHP? And if so, what am I using instead of tagErrorMsg?
MORE ADDITIONS:
The code copies / pastes directly from the textbook:
<h1>Add Post</h1>
<form method="post" action="<?php echo $html->url('/posts/add')?>">
<p>
Title:
<?php echo $html->input('Post/title', array('size' => '40'))?>
<?php echo $html->tagErrorMsg('Post/title', 'Title is required.') ?>
</p>
<p>
Body:
<?php echo $html->textarea('Post/body', array('rows'=>'10')) ?>
<?php echo $html->tagErrorMsg('Post/body', 'Body is required.') ?>
</p>
<p>
<?php echo $html->submit('Save') ?>
</p>
</form>
EmmyS source
share