php - Kohana: why won't this route generate fully? -
i have following route in bootstrap:
route::set('cycleadmin', '(<lang>/)cycleadmin(/<model>(/<action>(/<id>)))', array( 'lang' => $lang_options, 'model' => '[a-z_]{0,}', 'action' => '[a-z_]+', 'id' => '\d+', ))->defaults(array( 'controller' => 'cycleadmin', 'lang' => default_lang, 'model' => 'cycle', 'action' => null, ));
then have following uri request generate route:
echo route::get('cycleadmin')->uri(array('action' => 'add'));
but ends returning: /cycleadmin
i'm using kohana 3.1 (v3.1.1.1). worked in kohana 3.0.9.
what missing?
try set <model>
. work?
regards
sorin
Comments
Post a Comment