cake-php@googlegroups.com
[Top] [All Lists]

Re: Blog example not working - need edit in View

Subject: Re: Blog example not working - need edit in View
From: Huy Nguyen
Date: Wed, 2 Feb 2011 19:50:39 +0700
The latest one on cakephp.net, 1.3.7.


On Wed, Feb 2, 2011 at 7:44 PM, Jeremy Burns | Class Outfit <jeremyburns@xxxxxxxxxxxxxxx> wrote:
What version of Cake are you using?

On 2 Feb 2011, at 12:43, Huy Nguyen wrote:

Sorry for being brief. The error is described in the stackoverflow link.
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@xxxxxxxxx> wrote:
clarify ur error clearly


On Feb 2, 5:38 pm, Huy Nguyen <nvquang...@xxxxxxxxx> 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)
>
> http://stackoverflow.com/questions/4873781/htmlhelper-not-loaded-in-t...
>
> 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@xxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php
<Prev in Thread] Current Thread [Next in Thread>