/** * Request a new page be created * * @param array $input * @return Redirector */ public function requestCreateNewModel($input) { $scaffolding = $this->ScaffoldingManager->makeScaffolding($input, $this->CrudScaffolding); if ($scaffolding) { return $this->Redirect->route('dvs-dashboard'); } return $this->Redirect->route('dvs-models-create')->withInput()->withErrors($this->ScaffoldingManager->errors)->with('message', $this->ScaffoldingManager->message); }