Raczkuje w temacie Kohany i mam taki problem.
Gdy tworze akcje dla kontrolera z jednym parametrem wszystko dziala jak nalezy, ale gdy dodaj juz drugi, wywala mi blad:
  1. Kohana_Request_Exception [ 0 ]: Unable to find a route to match the URI: home/podstrona/pierwszy_parametr/drugi_param
  2.  
  3. SYSPATH\classes\kohana\request.php [ 674 ]
  4.  
  5. 669 }
  6. 670
  7. 671 // No matching route for this URI
  8. 672 $this->status = 404;
  9. 673
  10. 674 throw new Kohana_Request_Exception('Unable to find a route to match the URI: :uri',
  11. 675 array(':uri' => $uri));
  12. 676 }
  13. 677
  14. 678 /**
  15. 679 * Returns the response as the string representation of a request.
  16.  
  17.   1.
  18.  
  19.   SYSPATH\classes\kohana\request.php [ 230 ] ť Kohana_Request->__construct(arguments)
  20.   0
  21.  
  22.   string(45) "/home/podstrona/pierwszy_parametr/drugi_param"
  23.  
  24.   225
  25.   226 // Remove all dot-paths from the URI, they are not valid
  26.   227 $uri = preg_replace('#\.[\s./]*/#', '', $uri);
  27. 228
  28. 229 // Create the instance singleton
  29. 230 Request::$instance = Request::$current = new Request($uri);
  30. 231
  31. 232 // Add the default Content-Type header
  32. 233 Request::$instance->headers['Content-Type'] = 'text/html; charset='.Kohana::$charset;
  33. 234 }
  34. 235
  35.  
  36. 2.
  37.  
  38. APPPATH\bootstrap.php [ 110 ] ť Kohana_Request::instance(arguments)
  39. 0
  40.  
  41. string(45) "/home/podstrona/pierwszy_parametr/drugi_param"
  42.  
  43. 105 {
  44. 106 /**
  45.   107 * Execute the main request using PATH_INFO. If no URI source is specified,
  46.   108 * the URI will be automatically detected.
  47.   109 */
  48. 110 $request = Request::instance($_SERVER['PATH_INFO']);
  49. 111
  50. 112 try
  51. 113 {
  52. 114 // Attempt to execute the response
  53. 115 $request->execute();
  54.  
  55. 3.
  56.  
  57. DOCROOT\index.php [ 103 ] ť require(arguments)
  58.  


kod akcji:
  1. public function action_podstrona($param, $param2)
  2. {
  3. echo 'Witam jestem kontrolerem podstrony.
  4. <br/>Przyjąłem 2 parametry:
  5. <ul>
  6. <li>Pierwszy: '.$param.'</li>
  7. <li>Drugi: '.$param2.'</li>
  8. </ul>';
  9. }


Znalazłem rozwiązanie w pliku application/bootstrap.php trzeba bylo zmienic ustawienia Route::set('default', '(<controller>(/<action>(/<id>)))'), na Route::set('default', '(<controller>(/<action>(/<id1>(/<id2>))))')