Validates and creates a page with the given input
public createNewPage ( $input ) : boolean | ||
return | boolean |
/** * Request a new page be created * * @param array $input * @return Redirector */ public function requestCreateNewPage($input) { $page = $this->PageManager->createNewPage($input); if ($page) { return $this->Redirect->route('dvs-pages')->with('warnings', $this->PageManager->warnings)->with('message', $this->PageManager->message); } return $this->Redirect->route('dvs-pages-create')->withInput()->withErrors($this->PageManager->errors)->with('message', $this->PageManager->message); }