... | ... |
@@ -63,8 +63,15 @@ class View{ |
63 | 63 |
|
64 | 64 |
|
65 | 65 |
if($this->viewFile = $this->find($view)){ |
66 |
- if(!isset($this->viewFileExtension)) |
|
67 |
- $this->viewFileExtension = ".".pathinfo($this->viewFile, PATHINFO_EXTENSION); |
|
66 |
+ if(!isset($this->viewFileExtension)){ |
|
67 |
+ foreach($this->_L3->viewEngines->getRegisteredFileExtensions() as $extension){ |
|
68 |
+ if(substr($this->viewFile, -strlen($extension)) == $extension){ |
|
69 |
+ $this->viewFileExtension = $extension; |
|
70 |
+ break; |
|
71 |
+ //$this->viewFileExtension = ".".pathinfo($this->viewFile, PATHINFO_EXTENSION); |
|
72 |
+ } |
|
73 |
+ } |
|
74 |
+ } |
|
68 | 75 |
} |
69 | 76 |
else{ |
70 | 77 |
if(is_object($view)){ |