Notice (8): Undefined property: View::$Html [APP\views\posts\index.ctp, line 27]
Here is the line:echo $this->Html->link($post['Post']['title'], array('controller' => 'posts', 'action' => 'view', $post['Post']['id']));
I guess it doesnt load the HtmlHelper to View::$Html but instead to global variable $html?
On Wed, Feb 2, 2011 at 7:40 PM, andy_the ultimate baker <anandghaywankar567@gmail.com> wrote:
clarify ur error clearly
> http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...
On Feb 2, 5:38 pm, Huy Nguyen <nvquang...@gmail.com> wrote:
> I'm totally new to CakePHP so I followed the Blog example up to this point
> and get error because $this->Html not found in View.http://book.cakephp.org/view/1536/Creating-Post-Views
>
> I believe the right way is $html instead of $this->Html (as pointed out by
> another person on Stackoverflow)
>
>
> So I think someone with authority should edit the example in the Book?
>
> Huy
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment