For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > October 2004 > Re: [SMARTY] Managing vars not assigned









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Managing vars not assigned
Jordi Canals

2004-10-21, 8:57 am

Hi boots,

Thansks for your comments. Really I don't like modifiying the Smarty
class and we extend it for customization purposes. But in one project
I'm required all scripts runn under E_STRICT. After some testing, seen
that just modifiying the var declarations to public, makes Smarty to
run in E_STRICT mode with no problems :D

Thanks again,
Jordi.

On Wed, 20 Oct 2004 11:01:57 -0700 (PDT), boots <jayboots@yahoo.com> wrote:
> --- Jordi Canals <jcanals@gmail.com> wrote:
>
> You may want to turn error reporting down to E_ALL when including the
> Smarty class and then put it back to E_STRICT afterwards instead of
> modifying the Smarty class directly. While Smarty is compatible with
> PHP5, it is not fully compliant so using E_STRICT against it is not
> appropriate, IMO.
>

[snip]
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com