예제 #1
0
파일: KMSTest.php 프로젝트: ngonchan/Kooshy
 /**
  * Tests that required keys exist in the configuration file
  */
 public function testConfig()
 {
     $this->assertArrayHasKey('session_key', KMS::Config()->as_array());
 }
예제 #2
0
파일: session.php 프로젝트: ngonchan/Kooshy
 /**
  * Creates a new instance of the class
  */
 public function __construct()
 {
     $this->_data = Session::instance()->get(KMS::Config()->session_key, array());
     Session::instance()->bind(KMS::Config()->session_key, $this->_data);
 }