9 April 2010 at 12:20am
Something like this maybe?
class KrakowProdukt_Controller extends SiteTree_Controller
This is not tested and I would have expected KrakowProdukt to extend Page. This idea is to place code for the view (template) into the controller. The Model part of silverstripe makes light weight of finding the has one relationship and then you call the function.