How can I display a field from a model in the front list table header? I am linking one listing to another: Click on the name of a transplant patient in one list and you are taken to another list of the guests allowed to visit the patient. The link from the patient listing to the guests listing is working fine. I am using the following Where condition:
return array("patients.id" => $_GET["gcb"]);
This loads the correct patient. I have my guests table linked to the patients table under models. All is good. but now I need to put the patient's name in the Header (so we know what patient these guest belong to). The patient's name is under patients.p_first_name and patients.p_last_name.
Any ideas?
return array("patients.id" => $_GET["gcb"]);
This loads the correct patient. I have my guests table linked to the patients table under models. All is good. but now I need to put the patient's name in the Header (so we know what patient these guest belong to). The patient's name is under patients.p_first_name and patients.p_last_name.
Any ideas?