redirect - How to change the root in bootstrap (PHP) -
i using kohana 3.2.(php) need reset xyz.com/ar/contoller/method/argument. working fine.
route::set('default', '(<country_param>(/<controller>(/<action>(/<id>(/<method>)))))') ->defaults(array('controller' => 'auctions','action' => 'live','method' => null));
now need xyz.com/ar/modules/controller/method/argument. changed root.
route::set('default', '(<country_param>(/<user_param>(/<controller>(/<action>(/<id>(/<method>))))))') ->defaults(array('controller' => 'auctions','action' => 'live','method' => null));
but not working. can advise?
maybe need define pattern of variables
route::set('new_default', '(<country_param>(/<user_param>(/<controller>(/<action>(/<id>(/<method>))))))') ->defaults( array( 'controller' => 'auctions', 'action' => 'live', 'method' => null, 'country_param' => '[a-za-z0-9_]+', 'user_param' => '[a-za-z0-9_]+', ));
and don't forget, every route must has unique name.
Comments
Post a Comment