File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,19 @@ function sayHello()
13
13
return "index " ;
14
14
}
15
15
16
+ /**
17
+ * This function returns the Application URL
18
+ * for the given folder location
19
+ * @param String $location Folder Location
20
+ * @return String Folder URL
21
+ */
22
+ function baseUrl ($ location )
23
+ {
24
+ $ url = (isset ($ _SERVER ['HTTPS ' ])) ? 'https:// ' : 'http:// ' ;
25
+ $ url .= $ _SERVER ['HTTP_HOST ' ];
26
+ return $ url .$ location ;
27
+ }
28
+
16
29
/**
17
30
* This function is simply like an alias
18
31
* to getenv function
Original file line number Diff line number Diff line change 7
7
<title >Akshay | @yield (' page_title' )</title >
8
8
9
9
<!-- Bootstrap CSS -->
10
- <link rel =" stylesheet" href =" . /css/bootstrap.min.css" >
10
+ <link rel =" stylesheet" href =" {{ baseUrl ( ' /css/bootstrap.min.css' ) } } " >
11
11
12
12
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
13
13
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
21
21
<!-- jQuery -->
22
22
<script src =" //code.jquery.com/jquery.js" ></script >
23
23
<!-- Bootstrap JavaScript -->
24
- <script src =" . /js/bootstrap.min.css " ></script >
24
+ <script src =" {{ baseUrl ( ' /js/bootstrap.min.js ' ) } } " ></script >
25
25
</body >
26
26
</html >
You can’t perform that action at this time.
0 commit comments