<?php echo $html->link("my link", array("controller"=>"pages",
"action"=>"display", "my_page")) ?>
will create a link that points to:
http://www.example.com/pages/my_page
(and create the view file in /app/views/pages/my_page.ctp)
On Sep 12, 6:13 pm, Donkeybob <rip...@gmail.com> wrote:
> is this a normal html link? then => echo $html->link('My Link', '/
> your/view');
>
> On Sep 12, 11:57 am, "Siegfried Hirsch" <siegfried.hir...@gmail.com>
> wrote:
>
> > Use something like this:
>
> > $this->element('your_element');
>
> > On Fri, Sep 12, 2008 at 5:45 PM, gabriel <gko...@gmail.com> wrote:
>
> > > I would like to make a simple link to a view which does not have a
> > > controller and model, can anyone help me.
> > > REgards
>
> > --
> > Siegfried Hirsch
> > hhS - Welserstr. 1 - 81373 München - (089) 5484 3564 - skype:shirsch
> > Fax +49 - (0)89 - 943 992 698 -http://www.rss-blogger.dehttp://www.newsbee.deNewsBee2 - customized RSS solutionshttp://abo-stop.dejetztmit kostenlosem Kündigungsgenerator
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment