Re: How to use Router::connect and a anchor?
Much better use standard feature:
$html->link(
__('Our Partners', true),
array(
'controller' => 'pages',
'action' => 'display',
'partner',
'#' => 'slide1'
)
)
On 4 июл, 10:41, heohni <heidi.anselstet...@consultingteam.de> wrote:
> Great!Great!Great!!!!
>
> THANKS!!!
>
> On 4 Jul., 16:22, Tilen Majerle <tilen.maje...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Try this
>
> > $this->Html->link(__('Our Partners', true),
> > $this->Html->url(array('yoururlarray')) . '#slide1');
>
> > --
> > Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> > 2011/7/4 heohni <heidi.anselstet...@consultingteam.de>
>
> > > Hi,
>
> > > I am using thise "trick" for niver urls:
>
> > > Router::connect('/partner', array('controller' => 'pages', 'action' =>
> > > 'display', 'partner'));
>
> > > <?php echo $html->link(__('Our Partners', true), array('controller' =>
> > > 'pages', 'action' => 'display', 'partner'),.....
>
> > > But now, I want to link to a page like this
>
> > > /myproject/partner#slide1
>
> > > But this is not working, the Router::connect function does not
> > > recognize the link anymore.
>
> > > Anyone any an idea, how to solve this?
>
> > > Thanks!!
>
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > 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 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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home