Código PHP:
$this->Registry["ActiveRecord"]->Table("applications");
$this->Records = $this->Registry["ActiveRecord"]->FindBy("Active", "Yes");
$this->Switch = ucfirst($this->Route[1]);
$this->Case = 'switch($this->Switch) { case "Logout": $this->Get("Logout", $this->Route); break;';
foreach($this->Records as $this->Record) {
$this->Case .= 'case "$this->Record[Title]" : $this->Get($this->Record[Title], $this->Route); break;';
}
$this->Case .= '}';
eval($this->Case);
Saludos.