There are objects they are stored in $ lt-> images; if so var_dump($lt->images); getting like that
[0]=> object(Image) { ["id"]=> int(15) ["for_home"]=> int(1) } [1]=> object(Image){ ["id"]=> int(1693) ["for_home"]=> NULL } [2]=> object(Image) { ["id"]=> int(1694) ["for_home"]=> NULL } [3]=> object(Image) { ["id"]=> int(1695) ["for_home"]=> NULL } [4]=> object(Image){ ["id"]=> int(1696) ["for_home"]=> NULL } I'm trying to get an object that has for_home = 1 so
foreach($lt->images as $image); if($image->for_home==1) { echo('yes'); } and of course I don’t get anything explain how to get an object from which for_home = 1
$image['for_home']==1- Artem Y$lt->imagesit possible to$lt->imagesin question? And why);after foreach? - Mr. Black