Tuesday, September 16, 2008

Re: link to root, simple problem for or experienced person

If you are using 1.1, you can supply the link part, just as "/pages/
account"... so:
link('The account', '/pages/account');

On Sep 16, 7:57 am, "dr. Hannibal Lecter" <lecter...@gmail.com> wrote:
> The code advised is for CakePHP 1.2 and I assume you're using 1.1?
>
> On Sep 16, 12:55 pm, gabriel <gko...@gmail.com> wrote:
>
> > Hi thanks for that but when I do <?php echo $html->link("The Account",
> > array("controller" => "pages", "action" =>
> > "display", "account")); ?> I get
>
> > Notice: Array to string conversion in C:\xampp\htdocs\testsite\cake
> > \libs\view\helpers\html.php on line 179
>
> > Any ideas??
>
> > Thanks
>
> > On Sep 16, 7:51 am, Kalt <pierre.fring...@gmail.com> wrote:
>
> > > Little typo :
> > > $html->link("The Account", array("controller" => "pages", "action" =>
> > > "display", "account"));
>
> > > On 16 sep, 07:20, "Brett Wilton" <bdwil...@gmail.com> wrote:
>
> > > > $html->link("The Account", array("controller" => "pages", "action" =>
> > > > "account"));
>
> > > > ---
> > > > Brett Wiltonhttp://wiltonsoftware.com-Hidequoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: