public function configAction()
    {
        $table = new Application_Model_DbTable_Config();
        $rowset = $table->fetchAll();

        $config = array();
        foreach ($rowset as $row) {
            $config[$row->code] = $row->value;
        }

        $form = new Application_Form_Config();
        $form->populate($config);

        $request = $this->getRequest();

        if ($request->isPost() && $form->isValid($request->getPost())) {
            $values = $form->getValues();

            $table->update(
                array('value' => $values['can_vote']),
                $table->getAdapter()->quoteInto('code = "can_vote"')
            );

            $table->update(
                array('value' => $values['can_enter']),
                $table->getAdapter()->quoteInto('code = "can_enter"')
            );

            return $this->_redirect('/admin/config?msg=config-saved');
        }

        $this->view->form = $form;
    }