Mam taki router definiowany w xmlu

  1.  
  2. <paramtest>
  3. <route>paramtest/([a-zA-Z0-9_-]*),([\d]*)</route>
  4. <defaults>
  5. <module>default</module>
  6. <controller>index</controller>
  7. <action>param</action>
  8. </defaults>
  9. <map>
  10. <p1>p1</p1>
  11. <p2>p2</p2>
  12. </map>
  13. <reverse>paramtest/%s,%d</reverse>
  14. </paramtest>


gdy wywołam

Cytat


to kod jak poniżej


  1. public function paramAction()
  2. {
  3. Zend_Debug::dump($this->_getAllParams());
  4. die;
  5. }



zwraca

  1. 1 => string 'dsfsdf' (length=6)
  2. 2 => string '2' (length=1)
  3. 'module' => string 'default' (length=7)
  4. 'controller' => string 'index' (length=5)
  5. 'action' => string 'param' (length=5)


ale chciałbym coś takiego

  1. p1 => string 'dsfsdf' (length=6)
  2. p2 => string '2' (length=1)
  3. 'module' => string 'Default' (length=7)
  4. 'controller' => string 'index' (length=5)
  5. 'action' => string 'param' (length=5)


jak moge to zdefiniowac?questionmark.gif