set() public method

Sets a variable.
public set ( mixed $key, string $value = null )
$key mixed Key
$value string Value
コード例 #1
0
ファイル: RenderTest.php プロジェクト: NDStudios/mc
 function setUp()
 {
     $this->app = new \flight\Engine();
     $this->app->set('flight.views.path', __DIR__ . '/views');
 }
コード例 #2
0
ファイル: RedirectTest.php プロジェクト: JiYoungP/likeapro
 function setUp()
 {
     $_SERVER['SCRIPT_NAME'] = '/subdir/index.html';
     $this->app = new \flight\Engine();
     $this->app->set('flight.base_url', '/testdir');
 }
コード例 #3
0
ファイル: VariableTest.php プロジェクト: JiYoungP/likeapro
 function testHas()
 {
     $this->app->set('d', 1);
     $this->assertTrue($this->app->has('d'));
 }
コード例 #4
0
 function setUp()
 {
     putenv('SCRIPT_NAME=/subdir/index.php');
     $this->app = new \flight\Engine();
     $this->app->set('flight.base_url', '/testdir');
 }