Please can somebody help me get started with routing? I tried the documentation, but it doesn't seem to be working.
I have this code
class Brand extends DataObject {
static $db = array("Name" => "VarChar(200)");
static $has_many = array("Products" => "Product");
}
class Brand_Controller extends Controller
{
static $allowed_actions = array('test');
public function test($request)
{
return $this->renderWith('Page');
}
}
I would expect this to create a page at www.mysite.com/brand/test but I just get a 404. What am I missing?