Skip navigation.

exploreopera

| Help

Sign up | Help

Hello World

Practical programming... and stuff...

How to automatically escape template variables in Zend_View

,

Escaping any data which comes from the server is important to escape, as it prevents XSS amongst other things.

The Zend Framework view component Zend_View let’s you escape template variables with $this->escape($this->variableName), but it doesn’t escape them by default. Wouldn’t it be much nicer if it did that by default, or at least provided you with a variable to turn it on/off?

Let’s find out how to do that!

Read the rest of the post at codeutopia.net

Summing up Smarty and Zend ViewHow to improve your JavaScript

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Please type this security code : 6c9b6b

Smilies