Currently the form just redirects to `/session/login`, which is wrong if PHPCI was installed into a subdirectory.
This pull request fixes the URL that is used in the last form step.
The installer displays `phpci` as placeholders for the database settings (database and username).
When I do not change them the installer fails with this error:
`Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected' in /Users/tobias/Sites/PHPCI/vendor/block8/b8framework/b8/Database/Map.php on line 40`
I assume it is simply because they are not set. This pull requests uses the given values, or phpci as default.
In theory I would assume all the configuration values should be checked somehow. Is this just not implemented, or is it not desired?
"Pretty printing" `config.yml` in order to make it editable by humans. `5` is just value which is looking good for me. It produces a `config.yml` like this:
prevstage:
- start
- database
- github
- email
b8:
database:
servers:
read:
- localhost
write:
- localhost
name: phpci
username: *****
password: *****
phpci:
url: 'http://phpci.my.org'
github:
id: ''
secret: ''
email_settings:
smtp_address: ''
smtp_port: ''
smtp_encryption: on
smtp_username: ''
smtp_password: ''
from_address: ''
default_mailto_address: ''
I guess the `prevstage` node can be replaced before writing? If yes I'll prepare that.
install.php requires bootstrap.php instead of vars.php because otherwise
`$config` won't be set in vars.php.
This fixes: Fatal error: Call to a member function get() on a non-object
in /var/www/vars.php on line 11