Set Smarty compile dir.
public setCompileDir ( string $compileDir ) | ||
$compileDir | string | Absolute path where to store compiled files. |
/** * @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()); }