Posted By

paramah on 08/27/10


Tagged

input zend


Versions (?)

Zend_Input_Filter - skel


 / Published in: PHP
 

  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  

You need to login to post a comment.