I am using cakephp in one of my projects and my client wants the site URLs to end with .html and not the usual friendly urls. I was wondering if its possible in cakephp to d
Had to solve this without using Routes. Kept the default route entry for pages:
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
and in the display action removed the .html extension and rendered the respective view:
preg_replace('/\.html$/','',$view);
$this->render(null,'default',$view);
While calling the pages added 'ext' to be .html