Looks as it you are using a named field syntax to pass the hash #
param.
Try this:
$this->redirect( array(
'controller' => 'pages',
'action' => 'display',
"#{$this->params['pass'][0]}"
));
Notice that I don't use quotes around the numeric array index - that
isn't needed and is actually wrong. You don't want the key named '0'
but the 0 indexed key. The following aren't the same array( '0' =>
'value' ) and array( 0=>'value' )
Second, since you aren't passing a named param (#:somevalue) but a
regular hash (#somevalue) you should simply pass the #somevalue as the
last item in the array you use to build the url.
On Nov 18, 5:49 am, heohni <[email protected]>
wrote:
> Hi,
>
> I am using this redirect:
> $this->redirect(array('controller' => 'pages', 'action' => 'display',
> '', '#'=>$this->params['pass']['0']));
>
> But it seams that IE and Opera can not handle this?
>
> in FF and Chrome I get redirected towww.domain.com/#12345
>
> But in IE and Opera I only havewww.domain.comin the address bar...?
>
> Does anyone had this before, too?
>
> Thanks for any help!!
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php