ΤǻȤȤХURLȤ
Ķˤäڤؤʤȡ

֡ȯɤǤȤΤ
APP/config/common.php

Ķ˰¸Τ
dev.phpproduction.php
ߤʤ󤸤ˡ

ĶꤹΤ
apacheconfvirtualHost񤤤Ƥ褦ʤȤ
CAKE_CONFIGŪ̾ǡ

SetEnv CAKE_CONFIG dev

APP/controller/app_controller.php

configꤷ
ǡbeforeRendeerconfig˥åȤ
viewǤ$configǻȤ褦ˡ

  function beforeFilter() {
    Configure::load('common');
    if (isset($_SERVER['CAKE_CONFIG'])) {
      Configure::load($_SERVER['CAKE_CONFIG']);
      $this->config = array_merge(Configure::read("common"), Configure::read($_SERVER['CAKE_CONFIG'\
]));
    } else {
      $this->config = Configure::read("common");
    }
  }
  function beforeRender() {
    $this->set("config", $this->config);
  }