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

getBasePath() in slim 3

Bikash Dash's Avatar

Bikash Dash

17 Mar, 2016 12:08 PM

I am currently upgrading my existing project from slim 2.6 to slim 3. Earlier for defining the base path I did like this . define('MY_APP_BASE', $app->request()->getRootUri() );
But Now I am unable to get the base path . Can you help me ?

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