The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Slim 3 mode

Sergey's Avatar


16 Dec, 2015 07:51 AM

How to configure Slim 3 skeleton for various mode dev, prod, test ? File settings.php.

  1. Support Staff 1 Posted by Andrew Smith on 16 Dec, 2015 11:35 AM

    Andrew Smith's Avatar

    Use something like to manage this.

  2. 2 Posted by on 05 Jan, 2016 10:58 PM's Avatar

    either that or use something very simple like "switch"

    $envCheck = realpath(dirname(__FILE__));
    switch (strtower($envCheck) {
    case "dev":
    case "prod":

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac