¡Esta es una revisión vieja del documento!
What Are They? Routes allow you to make a specific page accessible via a unique URL.
Working With Routes Route configuration for your application can be changed by editing the application/configuration/routes.php file. If you open this up it should look something like this:
routes.php
namespace Salem; Route::add( array( '/' => 'mycontroller/functionHandler' , //this refers to your __domain.com/__ that will be manage the petition by the application/controllers/mycontroller.php file and launch the functionHandeler() fun respectively. 'mypage','mycontroller/func/argument', //in this case the function is called with a static argument, cause never change. 'query/alpha/int' => 'mycontroller/getQuery/argument1/argument2' //dinamic route and multi-arguments )//End of array );
Now if you visit index.php/mypage you should see the exact same thing as if you visited index.php/mycontroller/func/argument.
Dynamic Routes It also allows you to use regular expressions in your routes. Salem take this easy to you, only need to know the type of “arguments” needed.
The above third route would cause you to see domain.com/query/test/123 equal as if you visited domain.com/index.php/one/test/123456.