예제 #1
0
파일: Template.php 프로젝트: jewelhuq/fraym
 /**
  * @param $code
  * @param $text
  * @param $file
  * @param $line
  * @return bool
  */
 public function evalErrorHandler($code, $text, $file, $line)
 {
     if ($code !== E_NOTICE && $code !== E_USER_NOTICE) {
         ob_clean();
         $lines = explode("\n", $this->currentTemplateContent);
         $linePhp = explode("\n", $this->core->getEvalCode());
         echo "{$text} \n\n" . $lines[$line - 1];
         echo "\n\nPhp Code: \n\n" . $linePhp[$line - 1];
         exit(0);
     }
     return true;
 }