How to pass a variable to a function in Xataface

Hi Steve,
I have a file called course.html under templates/chemistry/courses/course/ folder, I tried to pass a variable to a function and failed. The detailed information is as follows:
$courseid={$course->htmlValue('course_id)}, it will return the correct $courseid.
{foreach from=$site->getCoursePersonnel($courseid) key=position_title item=persons name=course_personnel}
The passed in variable $courseid is empty. Could you please advise why and how should I pass this variable to the above function?
Thanks a lot.
Angie
I have a file called course.html under templates/chemistry/courses/course/ folder, I tried to pass a variable to a function and failed. The detailed information is as follows:
$courseid={$course->htmlValue('course_id)}, it will return the correct $courseid.
{foreach from=$site->getCoursePersonnel($courseid) key=position_title item=persons name=course_personnel}
The passed in variable $courseid is empty. Could you please advise why and how should I pass this variable to the above function?
Thanks a lot.
Angie