Fixing PHPCI so that it'll work in a subdirectory.
This commit is contained in:
parent
b9415316d4
commit
f256db237b
14 changed files with 66 additions and 53 deletions
|
|
@ -18,6 +18,15 @@ use b8\Registry;
|
|||
*/
|
||||
class Application extends b8\Application
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
if (isset($_SERVER['REDIRECT_PATH_INFO'])) {
|
||||
$_SERVER['REQUEST_URI'] = $_SERVER['REDIRECT_PATH_INFO'];
|
||||
}
|
||||
|
||||
return parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle an incoming web request.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue