Guest User

Untitled

a guest
Jul 15th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Router::connect(
  2. '/:browse/:state/:region/:subregion/:neighborhood/:plan/floorplan/:plan_num',
  3. array('controller' => 'neighborhood_plan_images', 'action' => 'display'),
  4. array(
  5. 'pass' => array('neighborhood', 'plan', 'plan_num'),
  6. 'browse' => '(move-in-ready|find-my-home)',
  7. 'state' => '.+',
  8. 'region' => '.+',
  9. 'subregion' => '.+',
  10. 'neighborhood' => '.+',
  11. 'plan' => '.+',
  12. 'plan_num' => '.*',
  13. )
  14. );
  15.  
  16.  
  17.  
  18. /**
  19. the above code is passing 'subregion', 'neighborhood', 'plan', and 'plan_num'
  20. instead of just 'neighborhood', 'plan', and 'plan_num' as specified.
  21.  
  22. why?
  23. **/
Add Comment
Please, Sign In to add comment