mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-16 22:15:21 +02:00
34 lines
609 B
PHP
34 lines
609 B
PHP
<?php
|
|
|
|
/**
|
|
* Smarty method Trigger_Error
|
|
*
|
|
* Triggers an error meassage
|
|
*
|
|
* @package Smarty
|
|
* @subpackage SmartyMethod
|
|
* @author Uwe Tews
|
|
*/
|
|
|
|
/**
|
|
* Smarty class Trigger_Error
|
|
*
|
|
* Triggers an error meassage
|
|
*/
|
|
|
|
class Smarty_Method_Trigger_Error extends Smarty_Internal_Base {
|
|
/**
|
|
* trigger Smarty error
|
|
*
|
|
* @param string $error_msg
|
|
* @param integer $error_type
|
|
*/
|
|
public function execute($error_msg, $error_type = E_USER_WARNING)
|
|
{
|
|
// trigger_error("Smarty error: $error_msg", $error_type);
|
|
throw new Exception("Smarty error: $error_msg");
|
|
}
|
|
}
|
|
|
|
?>
|