Hi there,
I've been reading through the docs regarding routing and i am a bit confused.
I currently have the following:
-------------------------------------------------
mysite/code/controllers/Customer.php
-------------------------------------------------
class Customer_Controller extends Controller {
public static $allowed_actions = array ();
public function init() {
parent::init();
return $this->renderWith('Customer');
}
//Set up URL handler
private static $url_handlers = array(
'customer/$Action/$ID/$Name'
);
}
# i want to be able to render the Customer.ss template if the user types the following url..... mysite/customer/
# i am trying to avoid hooking onto the Page Class because there will be alot of data and i dont want to involve SiteTree
# as far as i can see from the docs i am supposed to be able to do this either via the YAML config file or $url_handlers
I am not sure how to configure the YAML file to do this.
Thanks