Пример #1
0
 /**
  * Set a view file to use for errors and exceptions
  * @author Anthony Short
  * @param $path Path to the view file
  * @return void
  */
 public static function set_view($path)
 {
     if (is_file($path)) {
         self::$_view = $path;
     } else {
         throw new Exception('[Environment] Path to view file is not valid');
     }
 }