I am new at SilverStripe and perhaps I have a very simple question.
I created two PHP files in mysite/code with the name ScriptForm.php and ScriptFormPage.php. The ScriptFormPage only returns in the controller class an object with the type ScriptForm. And in the ScriptForm.php I want to read data from a data table in mysql (with PHP) and than I want to display this data for example as a table.
For this I created the templates SkriptFormPage.ss and SkriptForm.ss. In the SkriptFormPage.ss I only have this code:
<div id="Content" class="typography">
And in the SkriptFormPage.ss I want to display the data which I have read in the ScriptForm.php.
But currently I don't know how I can access in SkriptFormPage.ss to the data I have read in ScriptForm.php.
Can anybode help me with my simple problem?