Skip to content

Instantly share code, notes, and snippets.

@svandragt
Created July 8, 2014 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svandragt/be7298af36c4dcc25af6 to your computer and use it in GitHub Desktop.
Save svandragt/be7298af36c4dcc25af6 to your computer and use it in GitHub Desktop.
Configure static
---
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
<?php
class BoronService extends RestfulService {
private static $use_dev = 0;
// ...
}
@svandragt
Copy link
Author

Debug::show() shows that use_dev is set to 0 and that Debug::show(Director::get_environment_type()); is dev

@svandragt
Copy link
Author

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