⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Add field with related values



R2D2
  • profile picture
  • Member

Posted 29 September 2012 - 09:49 AM

Hey guys,

I am sure it isn't that hard to solve my issue, but I couldn't find anything helpfull so far :(

I want to set a relation to a specific ID and display more than just 1 information from that related table.

[b][u]Example[/u]:[/b]

[i][b]games[/b][/i]
id
home
away
...

[i][b]scorer[/b][/i]
game_id
name
...

This gets me just the home team
$this->grocery_crud->set_relation('game_id','games','home');


Now i want to display the away team too, but how?

Thanks in advance,
R2D2

victor
  • profile picture
  • Member

Posted 29 September 2012 - 12:38 PM

HI! /topic/801-set-relation-get-info-from-a-third-table/