Skip to content

Configuration

Matěj Bucek edited this page Mar 16, 2021 · 2 revisions

Configuration

There is few things you have to configure in config.yaml.

Configuration file

app:
   lookup:
      prefix: src/
      paths:
         - Controllers
         - Services
      templates: 
         path: templates/
         temp: tmp/
   errors:
      name: "ErrorController"
      method: handleError

In lookup, we specified paths, where our Kernel should look for your Services or Controllers.

We also specified paths for Latte there.

You also have to provide some class and method, where would be exceptions forwarded to.

Clone this wiki locally