Hello,

I already did this.
What I did is extending :

class CustomRoute extends Zend_Controller_Router_Route
{
    protected $_urlDelimiter = '-';

}

And after :

$router->addRoute(
    'home',
  new CustomRoute(
    'home-:country-:date',
    array(
        'controller' => 'accueil',
        'action'     => 'index',
        'country'=> 'all',
        'date'     => null),array()
));

But when i type www.mysite.com/home-usa-2008

I get the error : Uncaught exception 'Zend_Controller_Dispatcher_Exception'
with message 'Invalid controller specified (home-usa-2008)'


Matthew Ratzloff wrote:
> 
> http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Controller/Router/Route.php
> Check the properties.  You can easily extend this class to use your own
> delimiter.
> 
> -Matt
> 
> On Sun, Oct 5, 2008 at 5:00 AM, DarKA <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hello,
>> I would like to change the delimiter of Zend Framework router. In my
>> case,
>> from "/" to "__".
>> Does anyone has ever experienced this need.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Change-delimiter-for-Zend-Router-tp19823902p19823902.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Change-delimiter-for-Zend-Router-tp19823902p19830450.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to