FriendsOfCake / app-template

CakePHP2: An empty application template, for use with composer
71 stars 16 forks source link

Not using .env leads to errors in bootstrap #29

Closed ankr closed 10 years ago

ankr commented 10 years ago

I just tried to setup the app-template without an Config/.env file, which leads to errors in Config/bootstrap.php

https://github.com/FriendsOfCake/app-template/blob/master/app/Config/bootstrap.php#L38

Argument 1 passed to Hash::get() must be of the type array, boolean given, called in /.../app/Config/bootstrap.php on line 38 and defined [CORE/Cake/Utility/Hash.php, line 43]

Errors happens for lines: 38, 42, 43, 44, 45, 46

Errors is due to return value from parseUrlFromEnv https://github.com/FriendsOfCake/app-template/blob/master/app/Config/core.php#L52

AD7six commented 10 years ago

Unfortunately master is a bit fragile right now - will be resolved by #28 (which if you're eager is fine to check out, but will change before merging).

ankr commented 10 years ago

@AD7six I ended up using the .env file, so it's not a problem for me anymore. #28 does seem to contain quite a few changes though, so I will keep an eye on that one - thank you :)

AD7six commented 10 years ago

Closing as #28 has now been merged