Use view path constants in view->find() method.
This commit is contained in:
parent
4ed6d488ca
commit
a4e8375feb
|
@ -103,11 +103,11 @@ public function get()
|
|||
*/
|
||||
protected function find()
|
||||
{
|
||||
if (file_exists($path = APP_PATH.'views/'.$this->view.EXT))
|
||||
if (file_exists($path = VIEW_PATH.$this->view.EXT))
|
||||
{
|
||||
return $path;
|
||||
}
|
||||
elseif (file_exists($path = SYS_PATH.'views/'.$this->view.EXT))
|
||||
elseif (file_exists($path = SYS_VIEW_PATH.$this->view.EXT))
|
||||
{
|
||||
return $path;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue