Skip to content

Commit 9a8e296

Browse files
authored
add loadHtml method
1 parent d94f231 commit 9a8e296

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/View.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,16 @@ private static function loadPath($view)
3232
}
3333
}
3434

35-
public static function loadview($view)
35+
public static function loadView($view)
3636
{
3737
return self::loadPath(Directory::path('views')."/$view.php");
3838
}
3939

40+
public static function loadHtml($view)
41+
{
42+
return self::loadPath(Directory::path('views')."/$view.html");
43+
}
44+
4045
private static function findOrginalNameByHash($hashName){
4146

4247
$name = basename($hashName);

0 commit comments

Comments
 (0)