Re: Routing and html helper

2007-05-03 Thread gerbenzomp
Thanx for the replies! I'm using 1.1, but this array-based URL feature is surely just what I'm looking for! For now, I'll try to create my own html helper, as Tulio suggested, because I don't know if I'm ready for 1.2 yet. I did come a long way though by setting the base in app_controller before

Re: Routing and html helper

2007-05-02 Thread themanfrombucharest
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

Re: Routing and html helper

2007-05-02 Thread Tulio Faria
You can create another helper, like a HtmlExt (HTML Extension :) ) which do this... probably you can use the Html helper default as base Tulio, On 2 maio, 19:54, gerbenzomp <[EMAIL PROTECTED]> wrote: > I've changed the routes in my app, so that my paths are like this: > > $Route->connect("/

Routing and html helper

2007-05-02 Thread gerbenzomp
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/a