|
|
@@ -132,8 +132,9 @@ class GuestbookController extends Zend_Controller_Action
|
|
|
|
|
|
if ($this->getRequest()->isPost()) {
|
|
|
if ($form->isValid($request->getPost())) {
|
|
|
- $model = new Application_Model_Guestbook($form->getValues());
|
|
|
- $model->save();
|
|
|
+ $comment = new Application_Model_Guestbook($form->getValues());
|
|
|
+ $mapper = new Application_Model_GuestbookMapper();
|
|
|
+ $mapper->save($comment);
|
|
|
return $this->_helper->redirector('index');
|
|
|
}
|
|
|
}
|