public requestCopyPage ( integer $id, array $input ) : |
||
$id | integer | |
$input | array | |
return |
public function requestCopyPage($id, $input)
{
$page = $this->PageManager->copyPage($id, $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-copy', $id)->withInput()->withErrors($this->PageManager->errors)->with('message', $this->PageManager->message);
}