コード例 #1
0
 public function addAction()
 {
     $producers = new PhonesProducers();
     $producers->name = $this->request->getPost('name');
     $producers->save();
     $this->flash->success("New producer was added.");
     $this->dispatcher->forward(['action' => 'index']);
 }