I have clients that sign up and buy subscriptions. On the Admin page for each client can I add additional information to the page? I want to see what orders they have placed.
function render_mytable($CI,$values) {
$str = '<div>rendered version of the data you want to show</div>';
return array('type' => 'copy', 'tag'=>'div','value' => $str, 'order' => 101, 'js' => '<script>$(function(){ /* add your javascript here */ });</script>');
}
Comments
In your model's form_fields()
$fields['my_table'] = $this->render_mytable($CI,$values);
And then...
Thank you. The table is now showing up just above the Active checkbox. Is there a way to make it below the checkbox?
You can also look at the "embedded_list":
http://docs.getfuelcms.com/general/forms#embedded_list