Skip to content

Commit e0dbd92

Browse files
authored
Merge pull request #11 from pug-php/ci-4-view-path
Use uppercase view folder for CodeIgniter 4
2 parents bde7f61 + c2def82 commit e0dbd92

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

src/CiJade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private function extractViewPathFromOptions(array &$options)
7575
return $path;
7676
}
7777

78-
return APPPATH.'views';
78+
return APPPATH.(defined('CI_VERSION') && CI_VERSION < 4 ? 'views' : 'Views');
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)