replacement Exception() on InitializationException()
This commit is contained in:
@ -24,7 +24,7 @@ class PHPView implements iView
|
||||
public function __construct($config)
|
||||
{
|
||||
if (!isset($config['path'])) {
|
||||
throw new Exception('Configuration must have a "path" set.');
|
||||
throw new InitializationException('Configuration must have a "path" set.');
|
||||
}
|
||||
$this->setPath($config['path']);
|
||||
}
|
||||
@ -92,7 +92,7 @@ class PHPView implements iView
|
||||
ob_start();
|
||||
if (!is_readable($this->template)) {
|
||||
ob_clean();
|
||||
throw new Exception('Template "' . $this->template .'" not found.');
|
||||
throw new InitializationException('Template "' . $this->template .'" not found.');
|
||||
}
|
||||
include($this->template);
|
||||
return ob_get_clean();
|
||||
|
Reference in New Issue
Block a user