Thank you for your reply.
But '/*' matches all url like '/posts/add' '/comments/edit/2', all
request calls '/pages/display'.
And I tried this.
Router::connect('/:sesseionID', array('controller' => 'pages',
'action' => 'display', '?' => 'sessionID'), array('sessionID' => '(?:\?
(.*))'));
I try capturing sessionID.
But I get another error:
Warning (2): strpos() [function.strpos]: Empty delimiter. [CORE\cake
\dispatcher.php, line 607]
On Jan 28, 11:52 pm, Marcin Jaworski <[EMAIL PROTECTED]> wrote:
> Have you tried this?
> ---cut here---
> Router::connect('/', array('controller' => 'pages', 'action' =>
> 'display'));
> Router::connect('/*', array('controller' => 'pages', 'action' =>
> 'display'));
> ---cut here---
>
> On 28 Sty, 13:38, sanemat <[EMAIL PROTECTED]> wrote:
>
> > I am wordering how to get url to work:
> > /?CAKEPHP=session_id
>
> > Here is my route in app/config/routes.php:
> > Router::connect('/', array('controller' => 'pages', 'action' =>
> > 'display'));
>
> > When I access '/', it call '/pages/display', As I expected.
> > But when I set disable cookie and set use_trans_sid=1, I get problem.
> > In my expectation, '/?CAKEPHP=session_id' call '/pages/display/?
> > CAKEPHP=session_id'.
>
> > Contrary my expectation, when I access '/?
> > CAKEPHP=e233bd9c1facda8084d8ba2f2226eb60'
> > I get this error:
> > Error: CAKEPHPe233bd9c1facda8084d8ba2f2226eb60Controller could not be
> > found.
>
> > Please tell me how to get url to work '/?CAKEPHP=session_id'.
> > I use CakePHP 1.2.x.x
>
> > thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---