Webiny\Component\TemplateEngine\Bridge\Smarty\Smarty::getCompileDir PHP Method

getCompileDir() public method

Returns the current compile dir.
public getCompileDir ( ) : string
return string Absolute path to compile dir.
    public function getCompileDir()
    {
        return realpath($this->smarty->getCompileDir());
    }

Usage Example

Example #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());
 }