public function indexAction()
 {
     $model = new Configuration();
     $form = new ConfigurationForm();
     if ($this->request->isPost()) {
         $post = $this->request->getPost();
         if ($form->isValid($post)) {
             if ($this->saveFormData($post)) {
                 $this->flash->success($this->helper->at('Configuration saved'));
                 $this->redirect($this->url->get() . 'cms/configuration');
             }
         } else {
             $this->flashErrors($form);
         }
     } else {
         $form->setEntity($model->buildFormData());
     }
     $this->view->form = $form;
     $this->helper->title($this->helper->at('CMS Configuration'), true);
 }
 public function indexAction()
 {
     $model = new Configuration();
     $form = new ConfigurationForm();
     if ($this->request->isPost()) {
         $post = $this->request->getPost();
         if ($form->isValid($post)) {
             if ($this->saveFormData($post)) {
                 $this->flash->success('Настройки сохранены');
                 $this->redirect('/cms/configuration');
             }
         } else {
             $this->flashErrors($form);
         }
     } else {
         $form->setEntity($model->buildFormData());
     }
     $this->view->form = $form;
     $title = 'Конфигурация CMS';
     $this->view->title = $title;
     $this->helper->title($title);
 }