0
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 в контроллере, Могу ли я получить доступ к нему, как $ this-> arrErrors [ 'CLIENT_NAME'] в представлении?доступа к значениям массива с точки зрения
или я установить его как $ this-> view-> arrErrors [ 'имя_клиента'] = $ arrErrors [» имя клиента']; – Micheal