public function addAction()
 {
     $session = new Container('admin');
     $form = new CountryForm();
     $form->get('submit')->setValue('Add');
     if ($session->offsetExists('email')) {
         $request = $this->getRequest();
         if ($request->isPost()) {
             $country = new Country();
             $form->setInputFilter($country->getInputFilter());
             $form->setData($request->getPost());
             if ($form->isValid()) {
                 $country->exchangeArray($form->getData());
                 $this->getCountryTable()->saveCountry($country);
                 return $this->redirect()->toRoute('country');
             }
         }
     } else {
         $this->redirect()->toRoute('admin', array('action' => 'login'), array('query' => array('status' => 'u_login')));
     }
     return array('form' => $form);
 }
 public function __construct()
 {
     parent::__construct();
     $model = Country::getInstance();
 }