$_REQUEST['action']() : $controller->show(); class Controller { function show() { $this->obj = Doctrine::getTable('Obj')->find($_REQUEST['id']); include("layout/render.php"); } function mail() { $headers="Content-Type: text/html; charse=utf8\n"; $out = ""; foreach($_POST as $key => $value){ $out .= ""; } $out .= "
$key $value
"; mail("ms.maenner@googlemail.com,joerg@pc-hilfe-herzog.de", "AUTOMAILER: Homepage",$out,$headers) ; $_SESSION["flash"] = "Ihre Email wurde erfolgreich versendet"; redirect_to("index.php"); } }