<?php class Controller_Test extends Controller { function before() { Debug::dump($this->request->route); } function action_index() { echo 'Here! our home!!'; } function action_404() { echo 'Oppps, page not found!'; } function action_test() { throw new HttpNotFoundException; } function action_1() { echo 'Pass 1'; } function action_2() { echo 'Pass 2'; } function action_3() { echo 'Pass 3'; } }
<?php return array( '_root_' => 'test/index', // The default route '_404_' => 'test/404', // The main 404 route 'test' => 'test/test', ':a/:b/:c' => 'test/3', ':a/:b' => 'test/2', ':a' => 'test/1', );
It looks like you're new here. If you want to get involved, click one of these buttons!