PHP bir diziden değerleri alma Problem

0 Cevap php

iam using the Zend framework and assign the array from the controller to view. The array is coming from execution of stored procedure result

$results = callProcedure('testprocedure', $in)//$in is an array of input values 
$view->results =$results['record'];

In The $results['record'] array iam having two values such as 'NO' and 'name' and i want to assign this values also the view.However this values will be available in the $results['record']; array. But in the view i need have the values separately i dont repeat them in the loop . if i dont do for each iam not getting the values

Nasıl denetleyicisi bu değerleri atarım

$view->no=???
$view->NAME=???

Görünümünde Nasıl girebilirim $results['record'] dizisi

$this->results['NO']//  it is saying undefined index 'NO'
$this->results['NAME']// it is saying undefined index 'NAME'    

0 Cevap