cakephp 2 controller not loading "index" default action -


i start having weird problem, when trying access url:
http://localhost/xinglong/reservations
server doesn't load page, hangs , looks trying load something.
when use url:
http://localhost/xinglong/reservations/
(note last /) works fine loading index action default.

any ideas weird behavior?
thanks!

check /app/config/routes.php

this localhost/

router::connect('/', array('controller' => 'items', 'action' => 'index')); 

then, can define by:

router::connect('/xinglong/reservations', array( 'controller' => 'xinglong', 'action' => 'index')); 

or better:

router::connect('/xinglong/:action/*', array( 'controller' => 'xinglong')); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -