I use oil r fromdb:atkbr scaffold and oil r fromdb:atktb scaffold to generate the code. then I modify the properties and ORM relation (has many and belongs to. when I access atkbr/view/2 it gives correct result. but when I access atkbr/index it shows Trying to get property of non-object error .
@Harro.., what a fast response :) I haven't even finish the second part and yet already looked at.., tQ so much
and maybe usefull for my future discussion.., where can I upload the code, because the comment can't contain too many character in it.., so I must seperate it in 2 posts. tQ
gives you that error, it means that $item->atktb is not an object. Which is quite possible, if that specific $item doesn't have a related atktb object. In that case it will be NULL.