I'm make a static/dynamic mixed site.
- if a user accesses to xxx.com/about, I want to use pages controller to show about.ctp. it seems it's done like /pages/about but if i want to hide /pages, do I have to write like:
Router::connect('/about', array('controller' => 'pages', 'action' => 'display', 'about'));
for all static pages? or any better way?
- some static pages may be hierarchical. like /about/history, /about/address, ... I don't know what the easiest way is for maintenance later, like whether i should make a controller w/o model for each static directory or use page controller and keep all files in views/pages/. any advice?