php - disable smarty notice -
i disable smarty-s notices.
this exactly:
notice: undefined variable: xy
because know variables undefined , in cases don't want define them.
but don't want disable other php notices.
thanks help!
you should use this: http://www.smarty.net/docs/en/variable.error.reporting.tpl
just set
$smarty->error_reporting = e_all & ~e_notice;
Comments
Post a Comment