Skip to content
Endel Dreyer edited this page Jan 9, 2015 · 5 revisions

Routing

Your application routes should be defined in app/config/routes.php. The Router class supports get, post, put, delete, and any methods.

Examples:

// Any HTTP verb allowed.
Router::any('/', 'HomeController:index');

// Only GET allowed.
Router::get('/', 'HomeController:show');

// Only POST allowed.
Router::post('/', 'HomeController:create');

// Only PUT allowed.
Router::put('/', 'HomeController:update');

// Only DELETE allowed.
Router::delete('/', 'HomeController:destroy');

View template engine

hook-framework support both Handlebars and Mustache as template engine. (thanks to zordius/lightncandy)

Clone this wiki locally