private static function add_view($path, $mode, mvc\view $view)
  {
    if ( !isset(self::$loaded_views[$mode][$path]) ){
      self::$loaded_views[$mode][$path] = $view;
    }
    return self::$loaded_views[$mode][$path];
  }
private static function add_view($path, $mode, mvc\view $view)
  {
    if ( !isset(self::$loaded_views[$mode][$path]) ){
      self::$loaded_views[$mode][$path] = $view;
    }
    return self::$loaded_views[$mode][$path];
  }
private static function add_view ( $ path , $ mode , mvc \ view $ view ) { if ( ! isset ( self :: $ loaded_views [ $ mode ] [ $ path ] ) ) { self :: $ loaded_views [ $ mode ] [ $ path ] = $ view ; } return self :: $ loaded_views [ $ mode ] [ $ path ] ; }
This function gets the content of a view file and adds it to the loaded_views array.

@param string $p The full path to the view file
@return string The content of the view
This function gets the content of a view file and adds it to the loaded_views array .