If you're using 1.2 then maybe the new array based URL are what you
need:

$html->link('link', array('sitename' => 'a_site_name', 'controller' =>
'posts', 'action' => 'index'));

On May 3, 1:54 am, gerbenzomp <[EMAIL PROTECTED]> wrote:
> I've changed the routes in my app, so that my paths are like this:
>
> $Route->connect("/:sitename/", array("controller" => "posts", "action"
> => "index"));
>
> and urls are like this:
>
> site.com/sitename/controller/action/
>
> But the html helper automatically creates links like this:
>
> site.com/controller/action/
>
> Is there a way I can adjust the html helper so that the current
> sitename is added to each link in the app?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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