public function update(\SplSubject $obj) { if ($this->dev == true) { $content = $obj->getFormatedException(); require 'view.php'; } }
public function update(\SplSubject $obj) { $q = $this->db->prepare('INSERT INTO exceptions SET message = :message, date = NOW()'); $q->bindValue(':message', $obj->getFormatedException()); $q->execute(); $q->closeCursor(); }
public function update(\SplSubject $obj) { if ($this->dev == true) { $content = $obj->getFormatedException(); require __DIR__ . '/../../../../app/templates/exceptions.php'; } }