Insert view into admin page?

edited June 2012 in Modules
I'd like to insert my view into the admin page for my module. Is this possible? I'm trying:

form_fields() { $fields["custom_table"] = array( 'type' => 'custom', 'value' => $data, 'func' => array('My_model', 'add_table'), 'label' => ' ', ); function add_table($info) { $CI = get_instance(); return $CI->module_view('my_module', 'my_view', $info); } }

The view is actually successfully loading, but not being rendered in the admin page, where I want it....

Is it possible to do this?

Comments

  • edited 6:08PM
    Try the following (where TRUE returns it as a string):
    $CI->load->module_view('my_module', 'my_view', $info, TRUE);
Sign In or Register to comment.