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