|
@@ 779-785 (lines=7) @@
|
| 776 |
|
* @return void |
| 777 |
|
* @throws Exception |
| 778 |
|
*/ |
| 779 |
|
public function setCacheDir($dir) |
| 780 |
|
{ |
| 781 |
|
$this->cacheDir = rtrim($dir, '/\\') . DIRECTORY_SEPARATOR; |
| 782 |
|
if (is_writable($this->cacheDir) === false) { |
| 783 |
|
throw new Exception('The cache directory must be writable, chmod "' . $this->cacheDir . '" to make it writable'); |
| 784 |
|
} |
| 785 |
|
} |
| 786 |
|
|
| 787 |
|
/** |
| 788 |
|
* Returns the compile directory with a trailing DIRECTORY_SEPARATOR. |
|
@@ 809-815 (lines=7) @@
|
| 806 |
|
* @return void |
| 807 |
|
* @throws Exception |
| 808 |
|
*/ |
| 809 |
|
public function setCompileDir($dir) |
| 810 |
|
{ |
| 811 |
|
$this->compileDir = rtrim($dir, '/\\') . DIRECTORY_SEPARATOR; |
| 812 |
|
if (is_writable($this->compileDir) === false) { |
| 813 |
|
throw new Exception('The compile directory must be writable, chmod "' . $this->compileDir . '" to make it writable'); |
| 814 |
|
} |
| 815 |
|
} |
| 816 |
|
|
| 817 |
|
/** |
| 818 |
|
* Returns an array of the template directory with a trailing DIRECTORY_SEPARATOR |