Re: How to use Router::connect and a anchor?

2011-07-07 Thread Dr. Loboto
Much better use standard feature:

$html->link(
__('Our Partners', true),
array(
'controller' => 'pages',
'action' => 'display',
'partner',
'#' => 'slide1'
)
)

On 4 июл, 10:41, heohni  wrote:
> Great!Great!Great
>
> THANKS!!!
>
> On 4 Jul., 16:22, Tilen Majerle  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 
>
> > > Hi,
>
> > > I am using thise "trick" for niver urls:
>
> > > Router::connect('/partner', array('controller' => 'pages', 'action' =>
> > > 'display', 'partner'));
>
> > > 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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to use Router::connect and a anchor?

2011-07-04 Thread heohni
Great!Great!Great

THANKS!!!

On 4 Jul., 16:22, Tilen Majerle  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 
>
>
>
> > Hi,
>
> > I am using thise "trick" for niver urls:
>
> > Router::connect('/partner', array('controller' => 'pages', 'action' =>
> > 'display', 'partner'));
>
> > 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.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to use Router::connect and a anchor?

2011-07-04 Thread Tilen Majerle
Try this

$this->Html->link(__('Our Partners', true),
$this->Html->url(array('yoururlarray')) . '#slide1');

--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/7/4 heohni 

> Hi,
>
> I am using thise "trick" for niver urls:
>
> Router::connect('/partner', array('controller' => 'pages', 'action' =>
> 'display', 'partner'));
>
> 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 site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


How to use Router::connect and a anchor?

2011-07-04 Thread heohni
Hi,

I am using thise "trick" for niver urls:

Router::connect('/partner', array('controller' => 'pages', 'action' =>
'display', 'partner'));

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 site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php