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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -