I try to route with several sections like below
htpro / doc / appointments / 15/10/2014 2014
'doc' = & gt; Array ('type' = & gt; 'Segment', 'Option' = & gt; array ('path' = & gt; '/ doc [/: verb] [/: app_day] [/: app_month] [/: App_year] ',' barriers' = & gt; array ('action' = & gt; '[a-zA-Z] [a-zA-Z0-9 _-] *',), 'defaults' => ;);),
but I get the duplicate error; (; 'Controller' = & gt; Doctor Controller Doc ',' Action '= & gt; Appointments' What could be the problem,
The requested URL did not match the routing.
Try this:
'doctor' => Array ('type' = & gt; 'segment', 'option' => array ('path' = 'gtc: / htpro / doc [/: verb] [/: app_day] [/: app_month] /: App_year] ', // add / htpro' constraints '= & gt; array (' action '= & gt;' [a-zA-Z] [a-zA-Z0-9 _-] * ',' App_day '= & gt;' [0-9] * ', // this' app_month' = & gt; '[0-9] *', // add this' app_year '=> [0- 9] Array ('Controller' = & gt; Doctor \ Controller \ Dock ',' Action '=>,' Appointments',)),), ),
But you still need to define your own deficit.
Comments
Post a Comment