Hi,
an easy way would be to go to your app/config/routes.php and add a
rule like:

Router::connect('/about', array('controller' => 'pages', 'action' =>
'about'));

(This is code for cake 1.2, in the stable release it's something like
$route->connect() i guess).

And in the helper: $html->link('...', '/about');


Andreas

On 5 Mai, 07:03, basstech <[EMAIL PROTECTED]> wrote:
> Is there an easy way to configure my CakePHP app to construct URLs
> without the "pages/" part in it?
>
> For example, if I use the HtmlHelper like so:
>
> $html->link('About Me', 'about', null, false, false);
>
> Right now, CakePHP constructs the URL "http://domain.name/pages/
> about/". I would like this behavior to instead construct the URL
> "http://domain.name/about/";. Is there an easy way to do accomplish
> this?
>
> I know that there is a workaround to this by making an "AboutModel"
> and "AboutController" that could respond to this, however I would like
> to use the built in PagesController functionality rather than write a
> new MVC for each page.
>
> Thanks
> CJ

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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