ok let it be
now try
$html->link($post['Post']['title'], array('controller' =>
'posts', 'action' => 'view', $post['Post']['id']));
On Feb 2, 5:50 pm, Huy Nguyen <nvquang...@gmail.com> wrote:
> The latest one on cakephp.net, 1.3.7.
>
> On Wed, Feb 2, 2011 at 7:44 PM, Jeremy Burns | Class Outfit <
>
> jeremybu...@classoutfit.com> wrote:
> > What version of Cake are you using?
>
> > Jeremy Burns
> > *Class Outfit*
> > *
> > *
> > jeremybu...@classoutfit.com <jeremybu...@mac.com>
> >http://www.classoutfit.com
>
> > 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 <
> > anandghaywankar...@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 sitehttp://ask.cakephp.organd help
> >> others with their CakePHP related questions.
>
> >> To unsubscribe from this group, send email to
> >> cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@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 sitehttp://ask.cakephp.organd 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
> > athttp://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 sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@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