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 ?

  1. Josh Lockhart closed this discussion on 12 Feb, 2021 07:37 PM.

Comments are currently closed for this discussion. You can start a new one.

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