I need help in understanding the actual actions of a helper function in Zend Framework.
I need someone to explain to me what $this->escape($string) actually does to the string passed to it before printing the string into the template.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
$this->escape()escapes a string according to settings you can provide with$this->setEscape('functionname'), by default it is PHP’s htmlspecialchars function.http://framework.zend.com/manual/en/zend.view.scripts.html