Posted By


paramah on 08/27/10

Tagged


Statistics


Viewed 156 times
Favorited by 0 user(s)

Zend_Input_Filter - skel


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $filters = array(
  2. '*' => array('StringTrim', 'StripTags')
  3. );
  4.  
  5. $validators = array(
  6.  
  7. );
  8.  
  9. $input = new Zend_Filter_Input($filters, $validators, $data);
  10. if ($input->isValid())
  11. {
  12. }
  13. else
  14. {
  15. $messages = $input->getMessages();
  16. $this -> view -> form = $input->getEscaped();
  17. $this->view->invalid = $messages;
  18. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.