function record($table, $id) { include_once ROOT . "app/main/record.php"; $record = new record($this->model($table)); $record->findById($id); return $record; }