facut pana la video 7
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\core\exceptions;
|
||||
|
||||
class ForbiddenException extends \Exception{
|
||||
protected $code = 403;
|
||||
protected $message = 'You do not have permission to access this page';
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace app\core\exceptions;
|
||||
|
||||
class NotFoundException extends \Exception{
|
||||
protected $code = 404;
|
||||
protected $message = 'Page not found';
|
||||
}
|
||||
Reference in New Issue
Block a user