gave me another the solution on another forum, which I will reveal below.
In the interest of helping any other readers of the forum however, I'll give
you the error message I was receiving to help clear it up. If I keep
'$this' in the data path, I get this error:
Catchable fatal error: Object of class Zend_Db_Table_Row could not be
converted to string in
/Users/me/Sites/njaimh-zf/application/views/scripts/index/index.phtml on
line 15
Like I said , saying '$text->content2;' insead of '$this->$text->content2;'
DOES work.
I guess somehow that bypasses the view engine running off of the index
controller but I don't know how.
The other solution I got is just regular php. It's in the echo/print
function:
print html_entity_decode($content2);
I guess I'll stick with this one since it apparently keeps the escape
running, which is more secure I suppose. Anyway, if you have an explanation
to why removing '$this->' does the trick, I'd love to know.
Your help is appreciated greatly!!
--
View this message in context: http://www.nabble.com/How-do-I-customize-the-escape%28%29-function-for-HTML-rendering--tp23283430p23295601.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论