File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ public function route()
29
29
} else {
30
30
$ this ->route404 ();
31
31
}
32
-
33
32
}
34
33
35
34
public function index ()
Original file line number Diff line number Diff line change @@ -53,7 +53,11 @@ private function route404()
53
53
*/
54
54
private function setRoutes ($ routes )
55
55
{
56
- if (is_array ($ routes )) $ this ->routes = $ routes ;
56
+ if (is_array ($ routes ))
57
+ {
58
+ $ this ->routes = $ routes ;
59
+ return true ;
60
+ }
57
61
return false ;
58
62
}
59
63
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ public function __construct()
24
24
$ this ->packages = array (
25
25
'bootstrap ' => array (
26
26
'js ' => array (
27
- 'file1 '
27
+ 'public/components/bootstrap/dist/js/bootstrap.min.js '
28
28
),
29
29
'css ' => array (
30
- 'file1 '
30
+ 'public/components/bootstrap/dist/css/bootstrap.min.css '
31
31
)
32
32
),
33
33
'jquery ' => array (
@@ -96,7 +96,8 @@ public function __construct()
96
96
*/
97
97
public function getPackage ($ name )
98
98
{
99
-
99
+ if (isset ($ this ->packages [$ name ])) return $ this ->packages [$ name ];
100
+ return false ;
100
101
}
101
102
102
103
/**
@@ -107,7 +108,7 @@ public function getPackage($name)
107
108
*/
108
109
public function addPackage ($ name , array $ package )
109
110
{
110
-
111
+ $ this -> packages [ $ name ] = $ package ;
111
112
}
112
113
113
114
/**
You can’t perform that action at this time.
0 commit comments