Skip to content

Instantly share code, notes, and snippets.

@smichaelsen
Created June 19, 2015 21:11
Show Gist options
  • Save smichaelsen/47e066ba84e268bd1fe1 to your computer and use it in GitHub Desktop.
Save smichaelsen/47e066ba84e268bd1fe1 to your computer and use it in GitHub Desktop.
FluidTYPO3 data access

What is FluidTYPO3 general approach towards database access?

We really like to create content elements with fluidcontent, but sometimes we lack the option to prepare some variables for the template. In our current project we use Viewhelper to get records from the database, but of course that's far from best practice (though it works nicely).

I thought it would be nice I was able to create Controller classes based on naming conventions, e.g. I have a Downloads.html fluidcontent template and create a controller in Classes/Controller/Content/DownloadsController which extends fluidcontent's ContentController and gives me the ability to prepare template variables.

What do you think? What's your approach towards this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment