-
-
Save svandragt/be7298af36c4dcc25af6 to your computer and use it in GitHub Desktop.
Configure static
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Name: mysite | |
After: 'framework/*','cms/*' | |
--- | |
DateField: | |
default_config: | |
showcalendar: true | |
SSViewer: | |
theme: 'dna' | |
i18n: | |
locale: 'en_GB' | |
date_format: 'dd-MM-yyyy' | |
MySQLDatabase: | |
connection_charset: 'utf8' | |
--- | |
Only: | |
environment: 'dev' | |
--- | |
BoronService: | |
use_dev: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BoronService extends RestfulService { | |
private static $use_dev = 0; | |
// ... | |
} |
Solution, thanks to simon_w: $config_use_dev = self::config()->use_dev;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Debug::show()
shows that use_dev is set to 0 and thatDebug::show(Director::get_environment_type());
is dev