app.ymlにこんな風に書くと、 all: config: test: hogehogeコードの中では sfConfig::get('app_config_hogehoge');という感じでとってこれる。 設定値が多いとapp.ymlに書いていると見通しが悪くなるので、独自にgame.ymlをつくって値を持つようにする。 ./config/config_handlers.yml config/game.yml: class: sfDefineEnvironmentConfigHandler param: prefix: game_./config/game.yml all: config: test: hogehoge./config/frontendConfiguration.class.php class frontendConfiguration extends sfApplic
![独自に作成したyamlをsfConfig::get('hogehoge')で値を受け取る | Act as Professional](https://cdn-ak-scissors.b.st-hatena.com/image/square/ff2ee701824af0bf47c305bfd90113b3e7d79d77/height=288;version=1;width=512/https%3A%2F%2Fhiroki.jp%2Fwp-content%2Fuploads%2F2015%2F02%2Fcomment-edit-icon.png)