Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. accessing array values in view
  2. I have the following code in zend:
  3.  
  4.  $arrErrors=array();
  5.      if (!empty($this->post['submit']))
  6.     {
  7.         // Each time theres an error, add an error message to the error array
  8.            // using the field name as the key.
  9.           if (empty($this->post['client_name']))
  10.           $arrErrors['client_name'] = "Please Enter Client's name as it appears in the carrier software";
  11.     }
  12.        
  13. $this->view->arrErrors=arrErrors['client_name'];