Hi,

  I have a route that works on my windows dev machine (php5.3) yet on our
server (linux php5.2) it fails with the error 'Cannot assemble. Too few
arguments?'

  Here is the route:

routes.ppt.type                            =
"Zend_Controller_Router_Route_Regex"
routes.ppt.route                           = "([a-z-/]*)/-p/(.*)"
routes.ppt.defaults.module                 = "default"
routes.ppt.defaults.controller             = "search"
routes.ppt.defaults.action                 = "ppt"
routes.ppt.map.1                           = 'loc'  ; regex match 1 is
pushed into this variable
routes.ppt.map.2                           = 'ppt'  ; regex match 2 is
pushed into this variable
routes.ppt.reverse                         = "%s/-p/%s"

it looks for an SEO URL which has a bunch of key phrases in it:

http://example.com/clever/seo/words/here/-p/id

when I construct the route:

echo $this->view->url(array(
  'controller'    => 'search',
  'action'        => 'ppt',
  'ppt' => '45',
  'loc' => 'clever/seo/words/here'
  ),
  'ppt',
  true,
  false   // <-- don't escape the /s
);

Any ideas?

monk.e.boy

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Route-regex-error-Cannot-assemble-Too-few-arguments-tp3680475p3680475.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