getCompileDir() public method

Returns the current compile dir.
public getCompileDir ( ) : string
return string Absolute path to compile dir.
示例#1
0
 /**
  * @dataProvider dataProvider
  */
 public function testSetGetCompileDir(Smarty $smarty)
 {
     $this->assertSame(__DIR__ . '/Templates/Compile', $smarty->getCompileDir());
     $smarty->setCompileDir('/tmp/new-compile');
     $this->assertSame('/tmp/new-compile', $smarty->getCompileDir());
 }