Beispiel #1
0
 public function getMethod()
 {
     $this->getResponder()->setData('form', Form::getForm());
 }
 private function edit($slug)
 {
     $pagesTable = TableRegistry::get('Pages.Pages');
     $page = $pagesTable->find()->where(['slug' => $slug])->first();
     $this->getResponder()->setData('form', Form::getForm($page));
 }