src/Ffcms/Core/Exception/ForbiddenException.php 1 location
|
@@ 8-20 (lines=13) @@
|
| 5 |
|
use Ffcms\Core\App; |
| 6 |
|
use Ffcms\Core\Arch\Controller; |
| 7 |
|
|
| 8 |
|
class ForbiddenException extends TemplateException |
| 9 |
|
{ |
| 10 |
|
|
| 11 |
|
public function display() |
| 12 |
|
{ |
| 13 |
|
$this->status = 403; |
| 14 |
|
$this->title = '403 Forbidden'; |
| 15 |
|
$this->text = 'Access to this page is forbidden: %e%'; |
| 16 |
|
$this->tpl = 'forbidden'; |
| 17 |
|
|
| 18 |
|
parent::display(); |
| 19 |
|
} |
| 20 |
|
} |
src/Ffcms/Core/Exception/NotFoundException.php 1 location
|
@@ 5-17 (lines=13) @@
|
| 2 |
|
|
| 3 |
|
namespace Ffcms\Core\Exception; |
| 4 |
|
|
| 5 |
|
class NotFoundException extends TemplateException |
| 6 |
|
{ |
| 7 |
|
|
| 8 |
|
public function display() |
| 9 |
|
{ |
| 10 |
|
$this->status = 404; |
| 11 |
|
$this->title = '404 Not Found'; |
| 12 |
|
$this->text = 'Unable to find this URL: %e%'; |
| 13 |
|
$this->tpl = 'notfound'; |
| 14 |
|
|
| 15 |
|
parent::display(); |
| 16 |
|
} |
| 17 |
|
} |
src/Ffcms/Core/Exception/SyntaxException.php 1 location
|
@@ 9-21 (lines=13) @@
|
| 6 |
|
use Ffcms\Core\Arch\Controller; |
| 7 |
|
use Ffcms\Core\Helper\Type\Str; |
| 8 |
|
|
| 9 |
|
class SyntaxException extends TemplateException |
| 10 |
|
{ |
| 11 |
|
|
| 12 |
|
public function display() |
| 13 |
|
{ |
| 14 |
|
$this->title = 'Code syntax exception'; |
| 15 |
|
$this->status = 503; |
| 16 |
|
$this->tpl = 'syntax'; |
| 17 |
|
$this->text = 'Website code syntax exception: %e%'; |
| 18 |
|
|
| 19 |
|
parent::display(); |
| 20 |
|
} |
| 21 |
|
} |