Episode 04 • Sage is Awesome

Controllers

In this episode of Sage is Awesome we are going to take a look at how Controllers can be used to make our WordPress theme development cleaner.

So controllers are basically buckets in which you can put the business logic for your theme in, and then have access to those functions inside your templates. We want to do this so that our templates stay clean and not polluted with PHP code. If you are using Sage for your WordPress theme developemt I would suggest using controllers whenever possible. It will make your templates so much cleaner.

Controllers Documentation

Controllers Documentation

Download code
  • Episode 01 • Duration 23:26

    Install and Overview

  • Episode 02 • Duration 13:34

    Includes and SVGs

  • Episode 03 • Duration 12:44

    Components

  • Episode 04 • Duration 19:08

    Controllers

  • Episode 01 • Duration 23:26

    Install and Overview

  • Episode 02 • Duration 13:34

    Includes and SVGs

  • Episode 03 • Duration 12:44

    Components

  • Episode 04 • Duration 19:08

    Controllers