I am fairly new to Grocery Crud and I have read the documentation and searched the forum but I am looking to see how I can add an External URL instead of a link to another crud model within my application. Here is my example:
public function participant()
{
$crud = new grocery_CRUD();
$crud->set_theme('datatables');
$crud->set_table('participant');
$crud->where('participant.EVENT_ID',1011);
$crud->display_as('EVENT_ID','Event');
$crud->display_as('DIVISION_ID','Division');
$crud->set_relation('DIVISION_ID','division','{DIVISION_NAME}');
$crud->set_relation('EVENT_ID','event','{EVENT_NAME}');
$crud->add_action('Score', '', 'demo/action_more','ui-icon-plus',array($this,'score_participant'));
}
public function score_participant($primary_key , $row)
{
return redirect("http://www.example.com/add_score.php");
}
