(on Wednesday, 19 August 2009, 12:23 PM -0700):
> I tried with
> view.encoding = "UTF-8"
> view.escape = htmlentities
> view.strictvars = 1
>
> But at least for strictvars doesn't
> work.
This is a known problem identified earlier this week with how
Zend_Application and Zend_Application_Bootstrap flatten option keys to
lowercase. I'm trying to work up a fix for this, but I'm not sure how
soon it will be in place.
> Imho strictvars should be set true by default.
I disagree. It's tremendously useful for un-populated variables to
return null or an empty string within the view scripts, and allows you
to do decisioning and/or sanity checks very easily. strictVars is really
only useful during development in order to catch typos in variable
names.
--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论