public function postAdd(MessageBindingModel $message) { $validator = $this->validateMessage(new Validation(), $message); if (!$validator->validate()) { Session::setError($validator->getErrors()); Redirect::back(); } $this->message->add($message->first_name, $message->last_name, $message->email, $message->phone, $message->content, $message->about, date("Y-m-d H:i:s"), false); Session::setMessage('Message is sent successfully'); Redirect::to(''); }