Skip to content

Commit

Permalink
Dev: fix createUrl("/survey/index,array('sid'=>'some_string')
Browse files Browse the repository at this point in the history
Dev: 'matchValue'=>true do the trick
  • Loading branch information
Shnoulle committed Jun 23, 2014
1 parent bdfad82 commit 9cf14b3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions application/config/routes.php
Expand Up @@ -18,7 +18,7 @@
$route['<_sid:\d+>/lang-<_lang:\w+[-\w]+>/*'] = "survey/index/sid/<_sid>/lang/<_lang>";
$route['<_sid:\d+>/tk-<_token:\w+>/*'] = "survey/index/sid/<_sid>/token/<_token>";
$route['<_sid:\d+>/*'] = "survey/index/sid/<_sid>";
$route['<sid:\d+>/*'] = 'survey/index';
$route['<sid:\d+>/*'] = array('survey/index','matchValue'=>true);

//Admin Routes
$route['admin/index'] = "admin";
Expand All @@ -34,10 +34,8 @@

//optout
$route['optout/<_sid:\d+>/(:any)/(:any)'] = "optout/index/<_sid>/$2/$3";
$route['optout/<surveyid:\d+>/*'] = "optout/index";

//Public statitics
$route['statistics_user/<surveyid:\d+>/*'] = "statistics_user/action";
$route['optout/<surveyid:\d+>/*'] = array('optout/index','matchValue'=>true);
$route['statistics_user/<surveyid:\d+>/*'] = array('statistics_user/action','matchValue'=>true);

$route['<_controller:\w+>/<_action:\w+>'] = '<_controller>/<_action>';

Expand Down

0 comments on commit 9cf14b3

Please sign in to comment.