fburhan89
(Sefburhan)
April 30, 2013, 9:51am
1
hello,
I need searched ID from Dataprovider, It gives me nothings
In Model(i m using default search method):
$IDs=array();
foreach($this->search()->getData() as $data){
$IDs[$data->id]=$data->id;
}
any idea Please!
$IDs array should contain $data->id as value and as key.
Try to make a var_dump($IDs) at end of cycle to check his content.
Otherwise i didn’t understand your question.
fburhan89
(Sefburhan)
April 30, 2013, 10:04am
3
$IDs array should contain $data->id as value and as key.
Try to make a var_dump($IDs) at end of cycle to check his content.
Otherwise i didn’t understand your question.
thanks for reply.
i tried , gives null value. My problem is simple I need IDs list in dataprovider just!
Have you tried to verify:
var_dump($this->search()->data);
?
Are you in a model’s method?
fburhan89
(Sefburhan)
April 30, 2013, 11:55am
5
Have you tried to verify:
var_dump($this->search()->data);
?
Are you in a model’s method?
thank, i found the solution the problem was the Object!