This file contains hidden or 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
<? | |
class IndexController extends Controller | |
{ | |
// Handles PUT | |
public function put_index() | |
{ | |
} | |
// Handles POST | |
public function post_index() |
This file contains hidden or 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
<? | |
class IndexController extends Controller | |
{ | |
public function index() | |
{ | |
if ($this->request->method=='PUT') | |
{ | |
// do something | |
} | |
} |
This file contains hidden or 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
config_map: | |
db: conf/jon | |
defines: | |
DEBUG : true | |
STATIC_SERVER: "http://jon.getheavy.info" |
This file contains hidden or 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
debug: | |
uses: | |
- system.debug.debug | |
config_map: | |
db: db/debug | |
session: session/debug | |
twitter: twitter/debug | |
defines: | |
DEBUG : true | |
STATIC_SERVER: "http://cool-dev.s3.amazonaws.com/" |
This file contains hidden or 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
environment: debug | |
version: 1234 |
This file contains hidden or 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
environment: debug | |
version: 1234 | |
debug: | |
uses: | |
- system.debug.debug | |
config_map: | |
db: db/debug | |
session: session/debug | |
twitter: twitter/debug | |
defines: |
This file contains hidden or 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
<? | |
$config=Config::Get("servers"); | |
$config->server->url="http://newurl.com/"; | |
$config->save(); |
This file contains hidden or 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
<? | |
$config=Config::Get("servers"); | |
echo $config['server']['url']; |
This file contains hidden or 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
<? | |
$config=Config::Get("servers"); | |
echo $config->server->url; |
This file contains hidden or 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
{ | |
"server": { | |
"name": "Server 1", | |
"url": "http://server1.whatevs.com" | |
} | |
} |