public function contactAction(Request $request)
 {
     $data_page = $this->index('basic_page');
     $form = new ContactModel($request);
     if ($request->isPost()) {
         if ($form->isValid()) {
             $form->saveToDB();
             mail(Config::get('admin_email'), "Сообщение от пользователя {$form->name} ", $form->name . PHP_EOL . $form->email . PHP_EOL . $form->message . PHP_EOL . $form->date);
             $form->name = '';
             $form->email = '';
             $form->message = '';
             Session::setFlash(__t('message_send'));
         } else {
             Session::setFlash(__t('message_not_send'));
         }
     }
     $args = array('form' => $form, 'data_page' => $data_page, 'img' => $data_page['img']);
     return $this->render($args);
 }