/**
  * Initialize environment setting
  */
 public function initEnv()
 {
     if ($this->_appEnv != null) {
         // Set default error template.
         ViewAbstract::setDefaultErrorTemplate($this->_appEnv);
         // call initialize environment method.
         $envInitMethod = NameManager::toMethod('init_' . $this->_appEnv);
         if (method_exists($this, $envInitMethod)) {
             $this->{$envInitMethod}();
         }
     }
 }