Is there a way that I can use $this->escape()
on models or inside the controller?
$this->escape()
is used in view, its similar to htmlentities()
, htmlspecialchars
If you are looking for Quoting Values and Identifiers you should use quote()
, quoteInto()
methods.
http://framework.zend.com/manual/en/zend.db.adapter.html#zend.db.adapter.quoting.quote-into