I'm seeing some very odd, Router-related behavior when accessing the
site I'm currently developing on my Android phone (Samsung Galaxy S GT-
I9000).

I'm on Cake version 1.3.4.

I've put this line in routes.php:

Router::connect('/', array('controller' => 'homepages', 'action' =>
'view'));

That's the only route I have in there, and in all desktop browsers
I've tested (Firefox, Opera, IE, Chrome, Safari), it works as
expected: the view action of the homepages controller is displayed
when accessing the plain domain root (www.domainname.com).

When I access it with the default web client on my Samsung Galaxy,
however, I get an error message:

"Error: Http:Controller could not be found

Error: Create the class Http:controller below in file app/controllers/
http:controller.php"

...and so on.

If I try to use Opera Mini to access the exact same URL from the exact
same phone, this error message doesn't appear. So I assume the
standard web client is somehow requesting the page differently, which
in turn gets misinterpreted by Cake's routing.

Also, if I access the controller and action by its full, unrouted URL,
everything pops up as it should.

Anyone heard of this problem before, or have any idea about what might
be the problem? Is it fixable?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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

Reply via email to