I setup the news CRUD and it worked just fine:
$this->load->library('grocery_CRUD');
$crud = new grocery_CRUD();
$crud->set_table('news')
->set_subject('News')
->columns('news_title','news_content','news_publish_on','news_author')
->display_as('news_title','Title')
->display_as('news_content','Content')
->display_as('news_publish_on','Publish Date')
->display_as('news_author','Author');
$crud->order_by('news_publish_on','desc');
$crud->required_fields('news_title','event_tnews_contentype','news_publish_on','news_author');
$data['output'] = $crud->render();
When I add the following (under the ORDER BY line), it renders correctly:
$crud->set_relation_n_n('news','news_x_tags','tags','news_id','tag_id','tag_name','taggedby')
->display_as("news","Tags");
However, when I go to submit, I get:
[indent=1]
Timestamp: 8/20/2012 9:53:04 AM[/indent]
Error: SyntaxError: JSON.parse: unexpected character
Source File: http://myserver.com/assets/grocery_crud/js/jquery-1.7.1.min.js
Line: 2
What do I need to change in order to get this to function as expected? I appreciate your help.