This is literally my first day using PHP. I've never seen it until today, so please go easy on me. I can't understand why one of the urls doesn't work.
/* http://localhost works so I know this path is all set up */
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
/* http://localhost/pages/ or http://localhost/pages/about is
"Requested URL pages not found" even though it points
to the same known working path */
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display', 'home'));
I have Configure::write('debug', 2);
in core.php
.
In this same Ubuntu box I was playing with pure PHP and strangely whenever I used that the _POST
array was empty, no matter what the form tried to do. Do I have some setting that says no input except '/'
is allowed?