public function cookies($name, $normalize = null, $default = null)
 {
     if ($this->hasCookies($name)) {
         if ($normalize != null) {
             return \PFCS\FMK\Common::normalize($this->_cookies[$name], $normalize);
         }
         return $this->_cookies[$name];
     }
     return $default;
 }
 public function displayError($errorCode)
 {
     try {
         $view = \PFCS\FMK\View::getInstance();
         View::title('Error ' . $errorCode);
         $view->appendToLayout('header', 'header');
         $view->appendToLayout('body', 'errors.' . $errorCode);
         $view->appendToLayout('footer', 'footer');
         $view->display('layouts.default');
     } catch (\Exception $ex) {
         $error = \PFCS\FMK\Common::headerStatus($errorCode);
         echo '<h1>' . $error . '</h1>';
         exit;
     }
 }