public function detail($req)
    {
        $event = Event::get()->byID($req->param('ID'));
        if (!$event) {
            return $this->httpError(404);
        }
        return array(
            'Event'    => $event,
        );
    }
public function detail($req)
    {
        $event = Event::get()->byID($req->param('ID'));
        if (!$event) {
            return $this->httpError(404);
        }
        return array(
            'Event'    => $event,
        );
    }
public function detail ( $ req ) { $ event = Event :: get ( ) -> byID ( $ req -> param ( 'ID' ) ) ; if ( ! $ event ) { return $ this -> httpError ( 404 ) ; } return array ( 'Event' => $ event , ) ; }
Displays details of an event
@param $req
@return array
Displays details of an event