Executing server-side code?
I've been working with Tiki for a couple days now, and I can't find anything directly on this topic. I'm looking at various CMS systems to migrate an ancient site into. One thing I've started doing, and will continue to do, is to write PHP classes that can handle various tasks. For instance, one page has a signup form for training classes we offer. The form calls one class method to get an array of class ID numbers and descriptions, which is then passed to another method to create a select list displayed in the form, e.g.:
$selectBox = $forms->makeSelectBox($classes->getClassList());
echo $selectBox;
From what I gather on Tiki, this sort of code can't be included directly in a page anywhere. How would one go about handling this sort of task from within Tiki? That is, displaying material built from database queries, form submissions, etc. I see a couple options, like dynamic content or direct sql queries, but I think some sort of plugin is also a possibility if I'm reading the docs correctly. What do others do in this sort of situation?