code: public function registerView($view, $order = null, $applicationName = 'default')
      {
          if (! class_exists($view)) {
              throw new ViewException("No such view class {view} found", array(
                  'view' => $view
              ));
          }
          
          $v = new $view();
          if (! $v instanceof View) {
              throw new ViewException("View {view} is not in application scope", array(
                  'view' => $view
              ));
          }
          $viewOrder = $v->getOrder();
          if (null !== $order) {
              $viewOrder = intval($order);
          }
          
          $settings = $v->getViewSettings();
          $this->views[$applicationName][$viewOrder][$settings->getViewSimpleName()] = $settings;
          
          return $this;
      }
docs: Register a new view
  
  @param string $view
  The view class
  @param int $order
  Override the default order given by view class
  @param string $applicationName
  The application name where the view will be available in
  
  @throws ViewException
  
  @return Application Current application instance