[eluser]murichej[/eluser]
i want to acces to archive controller, which is in folder "front". for example: archive/2013/05
so i got this:
routes.php:
Quote:$route['archive/(:num)/(:num)'] = "front/archive/$1/$2";
controller front/archive.php:
1.
Quote:public function index()
it's working but need to access to arguments via uri->segment()
2.
Quote:public function index($a)
it's working but obviously i get only first parameter
3.
Quote:public function index($a, $b)
i get an error: "Message: Missing argument 2 for Archive::index()"
i have no idea what is happening. 3rd choice should work in my opinion. i can't understand why 2nd choice is working but 3rd doesn't.