i want to modify the tutorial 5.
now, i have a Project -> extends Page, that has a Student tab, where i can add some students. and i have a Student.php -> extends DataObject.
each student is a Student DataObject.
when i come to my project page, i want to display all students.
i suppose, i need a function in Project.php that returns all the Student datafields...
can someone show me how to write such a function?
in the Project.Php i have:
static $has_one = array( 'Students' => 'Student' );
so should i use in my template:
<% control Students %> ... some html <% end_control %>
but this doesn't work...