App Engine PHP routing |
[eluser]Anonymous[/eluser]
I have 2 codeigniter applications running on the app engine PHP environment. As of yesterday (after the 1.8.5 update ) both of the installations fail to perform proper routing. Every request goes to the default controller. I have set the Code: $config['uri_protocol'] Code: REQUEST_URI Dumping the Code: var_dump($_SERVER['REQUEST_URI']); Code: string(13) "/contact.html" The base_url is properly set by the framework: Code: var_dump($this->config->item('base_url')); Code: string(44) "http://***.appspot.com/" My APP.YAML is still the same: Code: - url: /(.+) The route in routes.php: Code: $route['contact'] = "page/contact"; Where to start debugging? It's still working locally on my MAC OSX with the latest SDK.
[eluser]Anonymous[/eluser]
I case somebody wants to know why Codeigniter is only loading the default controller on Google App Engine PHP. On line 188 in /system/core/URI.php there's a line: $uri = substr($uri, strlen($_SERVER['SCRIPT_NAME'])); This $_SERVER var is returning the URI so the substr functions blanks out the $uri var...uncomment this line and Codeigniter will work as expected. There's a defect issued at google: https://code.google.com/p/googleappengin...il?id=9369
|
Welcome Guest, Not a member yet? Register Sign In |