
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.47 KB | hits: 13 | expires: Never
accessing array values in view
I have the following code in zend:
$arrErrors=array();
if (!empty($this->post['submit']))
{
// Each time theres an error, add an error message to the error array
// using the field name as the key.
if (empty($this->post['client_name']))
$arrErrors['client_name'] = "Please Enter Client's name as it appears in the carrier software";
}
$this->view->arrErrors=arrErrors['client_name'];