I wanted my URLs to look like:
www.website.com/some_content

Instead of the cakephp default:
www.website.com/pages/some_content

So I edited the router.php to this

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

But now my controllers are not loading. It's asking for views instead.
Also, when I type:

<?php e($html->link('Somelink', 'somelink')); ?>
It still puts /pages in the url. How do I get rid of it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to