Ejemplo n.º 1
0
 public function __construct($content = '', $status = 403, $headers = array())
 {
     $content = '<h2>Error 403 - Access Forbidden</h2>';
     $content .= '<p>You do not have permission';
     $content .= ' to access the page you requested</p>';
     parent::__construct($content, $status, $headers);
 }
Ejemplo n.º 2
0
 public function __construct($content = '', $status = 404, $headers = array())
 {
     $content = '<h2>The page you requested was not found</h2>';
     $content .= '<p>You may have clicked an expired link or mistyped the ';
     $content .= 'address. Some web addresses are case sensitive</p>';
     parent::__construct($content, $status, $headers);
 }
Ejemplo n.º 3
0
 public function __construct($content = '', $status = 200, $headers = [])
 {
     parent::__construct('', $status, $headers);
     $this->setContent($content);
 }