Connect Dibi as a service with tracy bar 28/10/2014

config.neon parameters: database: host: localhost username: root password: *** database: database_name lazy: TRUE profiler : TRUE services: connection: class: DibiConnection(%database%) or with extension # This will create service named 'dibi.connection'. # Requires Nette Framework 2.2 extensions: dibi: Dibi\Bridges\Nette\DibiExtension22 dibi: host: localhost username: root password: *** database: database_name lazy: TRUE

config.neon

parameters:
    database:
        host: localhost
        username: root
        password: ***
        database: database_name
        lazy: TRUE
        profiler : TRUE

services:
    connection:
        class: DibiConnection(%database%)

or with extension

# This will create service named 'dibi.connection'.
# Requires Nette Framework 2.2

extensions:
    dibi: Dibi\Bridges\Nette\DibiExtension22

dibi:
    host: localhost
    username: root
    password: ***
    database: database_name
    lazy: TRUE