• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array value

#2
[eluser]darkhouse[/eluser]
Well it looks like you shouldn't be having any trouble with that new $parent array. But, why don't you just do this in your controller:

Code:
$data['parents'] = $parents->all;

Then in your view you can do this:

Code:
foreach($parents as $parent){
   echo $parent->company->companyname;
}


Messages In This Thread
Array value - by El Forum - 07-17-2009, 03:15 AM
Array value - by El Forum - 07-17-2009, 03:42 AM
Array value - by El Forum - 07-17-2009, 03:59 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.