@@ -161,6 +161,7 @@ protected function bindToClass($request, $url, $class)
161
161
{
162
162
$ array = explode ('| ' , $ url , 2 );
163
163
$ action = !empty ($ array [0 ]) ? $ array [0 ] : $ this ->router ->config ('default_action ' );
164
+ $ param = [];
164
165
165
166
if (!empty ($ array [1 ])) {
166
167
$ this ->parseUrlParams ($ request , $ array [1 ], $ param );
@@ -182,6 +183,7 @@ protected function bindToNamespace($request, $url, $namespace)
182
183
$ array = explode ('| ' , $ url , 3 );
183
184
$ class = !empty ($ array [0 ]) ? $ array [0 ] : $ this ->router ->config ('default_controller ' );
184
185
$ method = !empty ($ array [1 ]) ? $ array [1 ] : $ this ->router ->config ('default_action ' );
186
+ $ param = [];
185
187
186
188
if (!empty ($ array [2 ])) {
187
189
$ this ->parseUrlParams ($ request , $ array [2 ], $ param );
@@ -202,6 +204,7 @@ protected function bindToController($request, $url, $controller)
202
204
{
203
205
$ array = explode ('| ' , $ url , 2 );
204
206
$ action = !empty ($ array [0 ]) ? $ array [0 ] : $ this ->router ->config ('default_action ' );
207
+ $ param = [];
205
208
206
209
if (!empty ($ array [1 ])) {
207
210
$ this ->parseUrlParams ($ request , $ array [1 ], $ param );
@@ -222,6 +225,7 @@ protected function bindToModule($request, $url, $controller)
222
225
{
223
226
$ array = explode ('| ' , $ url , 2 );
224
227
$ action = !empty ($ array [0 ]) ? $ array [0 ] : $ this ->router ->config ('default_action ' );
228
+ $ param = [];
225
229
226
230
if (!empty ($ array [1 ])) {
227
231
$ this ->parseUrlParams ($ request , $ array [1 ], $ param );
0 commit comments