public function spremiAction() { $post = new Postovi(); $uspjelo = $post->save($this->request->getPost(), array('post', 'email')); if ($uspjelo) { header("Location: /twitter/"); } else { echo "Sorry, the following problems were generated: "; foreach ($post->getMessages() as $message) { echo $message->getMessage(), "<br/>"; } } }