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 MVC name
--SKIPIF--
--INI--
yaf.use_spl_autoload=0
yaf.use_namespace=0
--FILE--
array(
"directory" => APPLICATION_PATH,
"bootstrap" => APPLICATION_PATH . "/cboot.php",
"dispatcher" => array (
"catchException" => true,
),
"library" => array(
),
),
);
file_put_contents(APPLICATION_PATH . "/controllers/Error.php", <<getMessage());
return FALSE;
}
}
PHP
);
file_put_contents(APPLICATION_PATH . "/cboot.php", <<registerPlugin(new TestPlugin());
}
}
PHP
);
file_put_contents(APPLICATION_PATH . "/plugins/Test.php", <<setModuleName("CUSTOM", false);
\$request->setControllerName("INDEX", false);
\$request->setActionName("CamelName", false);
return;
}
public function dispatchLoopStartup(Yaf_Request_Abstract \$request, Yaf_Response_Abstract \$response) {
}
public function preDispatch(Yaf_Request_Abstract \$request, Yaf_Response_Abstract \$response) {
}
public function postDispatch(Yaf_Request_Abstract \$request, Yaf_Response_Abstract \$response) {
var_dump(\$request->getControllerName());
var_dump(\$request->getActionName());
}
}
PHP
);
$value = NULL;
@mkdir(APPLICATION_PATH . "/modules");
@mkdir(APPLICATION_PATH . "/modules/CUSTOM");
@mkdir(APPLICATION_PATH . "/modules/CUSTOM/controllers");
@mkdir(APPLICATION_PATH . "/modules/CUSTOM/views");
/* Controller name here should be lowercase anyway? */
@mkdir(APPLICATION_PATH . "/modules/CUSTOM/views/index");
file_put_contents(APPLICATION_PATH . "/modules/CUSTOM/controllers/INDEX.php", <<");
$app = new Yaf_Application($config);
$app->bootstrap()->run();
?>
--CLEAN--
--EXPECTF--
string(5) "INDEX"
string(9) "CamelName"
string(2) "ok"