Webiny\Component\TemplateEngine\Bridge\Smarty\Smarty::getCompileDir PHP 메소드

getCompileDir() 공개 메소드

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

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