I experienced a CakePHP Route Problem. I'm able to only access the main "/" also it shows the CakePHP default welcome webpage. Later I attempt to create my controller (symbols_controller.php) and sights (sights/symbols/index.ctp), it's problem. I entered http://localhost:8080/myapp/icons/ It always states "Not Found The requested URL /myapp/icons/ was not found on this server." During my hubs.php file it's:

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

I produce a controller within the symbols_controller.php file like:

<?php
class IconsController extends AppController{
 var $name = 'Icons'; 
 function index() {
  $this->set('icons', $this->Icon->find('all'));
 }
}
?>

Also it should simple open the file with merely a paragraph tag text (in /sights/symbols/index.ctp)

<h1>My Icons</h1>

However I cannot open the index.ctp by utilizing localhost:8080/myapp/icons/. So later I attempted to change my hubs.php file such as this, it really works fine using the url http://localhost:8080/myapp/:

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

It's fine and success display the "My Symbols" text. Wondering why only works under "/", with other things does not work.

Check to make certain you have mod_rewrite enabled on Apache.

http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

Really however , you haven't named the function just like the path display. So under controller you'll need a pages_controller having a display() function in addition to a display view within the pages folder under sights.