Wednesday, February 2, 2011

Re: Blog example not working - need edit in View

No, I tried both adding more helpers and removed the `var $helpers= array()` line.

On Wed, Feb 2, 2011 at 7:57 PM, Jeremy Burns | Class Outfit <jeremyburns@classoutfit.com> wrote:
Have you included any other helpers anywhere? If so, they override the defaults, which means that the Html helper is not loaded. Try adding 'Html' to your list of helpers (and 'Form' for good measure, as that will be missing too).
On 2 Feb 2011, at 12:50, Huy Nguyen wrote:

The latest one on cakephp.net, 1.3.7.


On Wed, Feb 2, 2011 at 7:44 PM, Jeremy Burns | Class Outfit <jeremyburns@classoutfit.com> 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@gmail.com> wrote:
clarify ur error clearly


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)
>
> 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@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


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

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