getCacheDir() 공개 메소드

Returns the current cache dir.
public getCacheDir ( ) : string
리턴 string Absolute path to cache dir.
예제 #1
0
 /**
  * @dataProvider dataProvider
  */
 public function testSetGetCacheDir(Smarty $smarty)
 {
     $this->assertSame(__DIR__ . '/Templates/Cache', $smarty->getCacheDir());
     $smarty->setCacheDir('/tmp/new-cache');
     $this->assertSame('/tmp/new-cache', $smarty->getCacheDir());
 }