| @@ 76-87 (lines=12) @@ | ||
| 73 | Yii::app()->end(); |
|
| 74 | } |
|
| 75 | ||
| 76 | protected function saveXml() |
|
| 77 | {
|
|
| 78 | $dir = pathinfo($this->filePath, PATHINFO_DIRNAME); |
|
| 79 | if( !file_exists($dir) ) |
|
| 80 | {
|
|
| 81 | mkdir($dir); |
|
| 82 | chmod($dir, 0775); |
|
| 83 | } |
|
| 84 | ||
| 85 | $this->xmlWriter->flush(); |
|
| 86 | @chmod($this->filePath, 0775); |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * @param string $template |
|
| @@ 83-94 (lines=12) @@ | ||
| 80 | return false; |
|
| 81 | } |
|
| 82 | ||
| 83 | private function saveXml() |
|
| 84 | {
|
|
| 85 | $dir = pathinfo($this->filePath, PATHINFO_DIRNAME); |
|
| 86 | if( !file_exists($dir) ) |
|
| 87 | {
|
|
| 88 | mkdir($dir); |
|
| 89 | chmod($dir, 0775); |
|
| 90 | } |
|
| 91 | ||
| 92 | $this->xmlDocument->saveXML($this->filePath); |
|
| 93 | chmod($this->filePath, 0775); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * @param string $template |
|