membuat environment development testing dan production

pada yii di index file kita akan merubah / menambah [code] //choose environment development $appEnv = filter_input(INPUT_ENV, ‘APPLICATION_ENV’, FILTER_SANITIZE_ENCODED); $serverName = filter_input(INPUT_SERVER, "SERVER_NAME", FILTER_SANITIZE_SPECIAL_CHARS); if (!isset($appEnv)) { if (true === stripos($serverName, ‘localhost’)) { $appEnv = "development"; } else if (true === stripos($serverName, ‘www.meltonice.com’)) { $appEnv = "testing"; } else if (true === stripos($serverName, ‘www.kresna.host’)) { […]

© 2018 IT & Photography blog | ScrollMe by AccessPress Themes