Answer the question
In order to leave comments, you need to log in
How to get current element in ORM?
I'm working on a site written in Kohana that uses an ORM. The task was to display the current element of the array (as I thought), of course current () did not work, then I printed the object and ...
$allPhotos=ORM::factory('Images')->where('id_restoran', '=', $restoran->id)->order_by('id')->find_all();
var_dump($allPhotos);
foreach ($allPhotos as $value){
var_dump($value);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question