Jak ustawić opcjonalny trzeci parametr na trasach Codeigniter
$routes->get('logout/(:any)', 'Login::logout/$1');
$routes->get('logout', 'Login::logout');
public function logout($param1 = null, $param2 = null, $param3 = null)
{
var_dump($param1, $param2, $param3); exit;
}
Ankur