|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
MarkM Smarty Rookie
Joined: 06 Jun 2011 Posts: 5
|
Posted: Fri Nov 11, 2011 12:21 am Post subject: |
|
|
I will look at that. But I want to set notices for my php code, but be able to turn it off for the smarty templates. My template designer doesn't want to use isset everywhere on the template (there are 1000s of them). But I want to use the notice level n my php code to know if I am referencing missing variables etc. Do you think that is possible, to have both set that way? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Nov 11, 2011 12:32 am Post subject: |
|
|
I have no detailed knowledge of php-fpm. May be it does not allow to change the error_reporting level.
We are working on completely different internal handling of undefined variables for Smarty 3.2 which should solve these problems. But this is some month down the road. |
|
Back to top |
|
koth Smarty n00b
Joined: 06 Nov 2013 Posts: 1
|
Posted: Wed Nov 06, 2013 5:22 am Post subject: Similar problem fixed by using muteExpectedErrors |
|
|
I solved a similar problem by using http://www.smarty.net/docs/en/api.mute.expected.errors.tpl
Not sure if you have the same problem but it might be that something is setting a custom error handler that makes the error_reporting value not effective in that context. |
|
Back to top |
|
eurovle Smarty n00b
Joined: 12 Nov 2013 Posts: 1 Location: Moscow
|
Posted: Tue Nov 12, 2013 6:30 am Post subject: |
|
|
U.Tews wrote: | Have a look at the Log_Level parameter in php-fpm.conf. | |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|