It works when Pico is installed as a dependency
This commit is contained in:
parent
bd24d518f2
commit
9e752c1d29
1 changed files with 9 additions and 1 deletions
10
index.php
10
index.php
|
@ -1,6 +1,14 @@
|
|||
<?php
|
||||
|
||||
$parent = '..' . DIRECTORY_SEPARATOR;
|
||||
set_include_path(
|
||||
get_include_path() . PATH_SEPARATOR .
|
||||
$parent . $parent . $parent . PATH_SEPARATOR .
|
||||
'.'
|
||||
);
|
||||
|
||||
// load dependencies
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
require_once('vendor/autoload.php');
|
||||
|
||||
// instance Pico
|
||||
$pico = new Pico(
|
||||
|
|
Loading…
Add table
Reference in a new issue