Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
--TEST--
Check for Custom route
--SKIPIF--
--INI--
yaf.use_namespace=0
--FILE--
setModuleName("moDule");
$request->setControllerName("index");
$request->action = "ActioN";
}
return $switch;
}
public function assemble($info, $verify = NULL) {
}
}
$router->addRoute("custom", new myRoute);
$request = new Yaf_Request_Http("/foo/dummy");
$router->route($request);
print_r($request);
var_dump($router->getCurrentRoute());
$switch = false;
$request = new Yaf_Request_Http("/foo/dummy");
$router->route($request);
print_r($request);
var_dump($router->getCurrentRoute());
?>
--EXPECT--
Yaf_Request_Http Object
(
[method] => CLI
[module] => Module
[controller] => Index
[action] => action
[uri:protected] => /foo/dummy
[base_uri:protected] =>
[dispatched:protected] =>
[routed:protected] => 1
[language:protected] =>
[params:protected] => Array
(
)
)
string(6) "custom"
Yaf_Request_Http Object
(
[method] => CLI
[module] =>
[controller] => Foo
[action] => dummy
[uri:protected] => /foo/dummy
[base_uri:protected] =>
[dispatched:protected] =>
[routed:protected] => 1
[language:protected] =>
[params:protected] => Array
(
)
)
string(8) "_default"