static route definitions is moved to definitions.php
this totally overrides any default routing handled by the controllers
\sb\Gateway::addRoute('PUT', '/boxer/add', '\Controllers\Boxer@add');
/*
\sb\Gateway::addRoute('PUT', '/boxer/add', function(){
    die('put');
});
 */
\sb\Gateway::addRoute('POST', '/boxer/edit', '\Controllers\Boxer@edit');
\sb\Gateway::addRoute('GET', '/boxer/(\d+)', '\Controllers\Boxer@get');
\sb\Gateway::addRoute('DELETE', '/boxer/delete/(\d+)', '\Controllers\Boxer@delete');

namespace Controllers;

class Boxer extends Index{

	/**
	 * This runs before the page is rendered and allows you to check args etc.
	 * If you return false, e.g. if certain login criteria are not met etc, the page is not rendered for the user
	 */
	public function onBeforeRender($method=''){
        //check permissions, etc
	}

     /**
     * The index page of the controller
     * @servable true
     */
    public function index(){
        return $this->renderView('/demo/page');
    }

    public function add(){
        die('boxer add');
    }

    public function edit(){
        die('boxer edit');
    }

    public function delete($id){
        die('boxer delete '.$id);
    }

    public function get(){
        die('boxer get');
    }

	/**
	 * Fired when no matching method/view is found for the request
	 */
	public function notFound(){
		parent::notFound();
	}
}
Merge branch '1.9.0-beta' of github.com:surebert/surebert-framework into 1.9.0-beta