According to docu, "We need to define the URL that this controller can be accessed on. In our case, the TeamsController should be visible at http://yoursite.com/teams/ and the players custom action is at http://yoursite.com/team/players/.". But the controller is defined as
<?php
class TeamController extends Controller {
private static $allowed_actions = array(
'players',
'index'
);
public function index(HTTPRequest $request) {
// ..
}
public function players(HTTPRequest $request) {
print_r($request->allParams());
}
}
?>
Configuration:
Name: mysiteroutes
After: framework/routes#coreroutes
---
Director:
rules:
'teams//$Action/$ID/$Name': 'TeamController'
Is this correct?