i want to use my own controller for fetching some special content. I got a "pageType" called "magazin". I want to fetch the lastest entry of a "magazin" and render the output with the template.
I set the controller in my template definition file.
<view>ClientWebsiteBundle:templates:overview</view>
<controller>SuluWebsiteBundle:Default:index</controller>
<cacheLifetime>2400</cacheLifetime>
is there any example of what the controller should look like? I don't understand what the StructureInterface etc. does.