Hi Altamash - thanks for your reply. Unfortunately the %s addition didn't seem 
to help load my route. 

    $route = new 
Zend_Controller_Router_Route_Regex('(de|fr|nl)/(help|hilfe|aide)(?:/(.+))',
        array(
            'controller' => 'index',   
            'action' => 'help'
        ),
        array(
            '1' => 'sitecode',
            '2' => 'help_sef_url',
            '3' => 'sef_url'
        ),
        '%s'
    );
    $router->addRoute('helppage_intl', $route); 


Is %s saying that the above URL should be a string? (I referred to the sprintf 
function as mentioned in the zend documentation).

How would I tell bootstrap that the URLs (mentioned in my original post 
http://zend-framework-community.634137.n4.nabble.com/Questions-about-Zend-Controller-Router-Route-mandatory-arguments-td3694918.html#a3696496
 ) need these mandatory first two fields to follow this route?  :/

Many thanks,
Rishi






________________________________
From: Altamash <[email protected]>
To: [email protected]
Sent: Tuesday, July 26, 2011 11:17 PM
Subject: [fw-general] Re: Questions about Zend_Controller_Router_Route 
mandatory arguments

You are missing a simple argument which is there in zend fr document. Which
would be.
$route = new
Zend_Controller_Router_Route_Regex('(de|fr|nl)/(help|hilfe|helpde)(?:/(.+))',
        array(
            'controller' => 'index',    
            'action' => 'help'
        ),
        array(
            '1' => 'sitecode',
            '2' => 'help_sef_url',
            '3' => 'sef_url'
        ),
        '%s'
    );
    $router->addRoute('helppage_intl', $route); 

Hope this helps.

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Questions-about-Zend-Controller-Router-Route-mandatory-arguments-tp3694918p3696496.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]

Reply via email to