This file contains 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
location / { | |
## Serve static files from defined root folder. | |
## @gitlab is a named location for the upstream fallback, see below. | |
try_files $uri $uri/index.html $uri.html @gitlab; | |
} |
This file contains 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
<? | |
/** | |
* 古い連想配列表現方法を使った多重配列定義例 | |
* | |
*/ | |
$array_old = array( | |
array('index' => 1, | |
array('hoge' => 'hohoho', 'fuga' => 'fufufu'), | |
array('updated_at' => time()), |
This file contains 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
<?php | |
class Controller_Top extends Controller | |
{ | |
/** | |
* 連想配列を array('foo' => 'bar') で表現したときのダメなメソッドチェーン例。 | |
*/ | |
public function action_mongotest() | |
{ | |
$db = \Mongo_Db::instance(); |