Hi All,
Please see my code
<?php echo $operator->operators->name;?> - this line is working fine
$operator->via_ports->name;
- this line show the error Trying to get property of non-object
$operator->via_ports->name;exit;
This line print the port name without any error. the only extra thing i did was put an exit.
I think this is something with the lazy loading , since i am a begginner couldnt resolve this. please help…
thanks
Ageesh
vamp
(Vamphouse)
2
Try to use
CHtml::value($operator,'via_ports.name',$defaultValue);
via_ports is null (it means that related object not exists)