[eluser]goFrendiAsgard[/eluser]
Hi,@Ashirra
In my case I have article and comment table.
An article can have more than one comment.
This is my code:
Code:
public function comment($article_id=NULL){
$crud = new grocery_CRUD();
$crud->set_table('blog_comment');
if(isset($article_id)){
$crud->where('blog_comment.article_id', $article_id);
}
$output = $crud->render();