Si je supprime toutes les lignes avec la fonction GetMethod, le site apparait.
Mais certaines parties du sites risquent de ne plus fonctionner...à quoi sert ce fichier 'ProjectUrlMatcherrouter_Front.php' ?
// customer.create.process
if ($pathinfo === '/register') {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_customercreateprocess;
}
return array ( '_controller' => 'Front\\Controller\\CustomerController::createAction', '_view' => 'register', '_route' => 'customer.create.process',);
}
not_customercreateprocess:
// customer.login.process
if ($pathinfo === '/login') {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_customerloginprocess;
}
return array ( '_controller' => 'Front\\Controller\\CustomerController::loginAction', '_view' => 'login', '_route' => 'customer.login.process',);
}
not_customerloginprocess:
// customer.password.retrieve.process
if ($pathinfo === '/password') {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_customerpasswordretrieveprocess;
}
return array ( '_controller' => 'Front\\Controller\\CustomerController::newPasswordAction', '_view' => 'password', '_route' => 'customer.password.retrieve.process',);
}
not_customerpasswordretrieveprocess:
// customer.logout.process
if ($pathinfo === '/logout') {
return array ( '_controller' => 'Front\\Controller\\CustomerController::logoutAction', '_route' => 'customer.logout.process',);
}
if (0 === strpos($pathinfo, '/a')) {
if (0 === strpos($pathinfo, '/account')) {
if (0 === strpos($pathinfo, '/account/update')) {
// customer.update.view
if ($pathinfo === '/account/update') {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_customerupdateview;
}
return array ( '_controller' => 'Front\\Controller\\CustomerController::viewAction', '_view' => 'account-update', '_route' => 'customer.update.view',);
}
not_customerupdateview:
// customer.update.process
if ($pathinfo === '/account/update') {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_customerupdateprocess;
}
return array ( '_controller' => 'Front\\Controller\\CustomerController::updateAction', '_view' => 'account-update', '_route' => 'customer.update.process',);
}
not_customerupdateprocess:
}
if (0 === strpos($pathinfo, '/account/password')) {
// customer.password.change.process
if ($pathinfo === '/account/password') {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_customerpasswordchangeprocess;
}
return array ( '_controller' => 'Front\\Controller\\CustomerController::updatePasswordAction', '_view' => 'account-password', '_route' => 'customer.password.change.process',);
}
not_customerpasswordchangeprocess:
// customer.password.change.view
if ($pathinfo === '/account/password') {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_customerpasswordchangeview;
}
return array ( '_controller' => 'Thelia\\Controller\\Front\\DefaultController::noAction', '_view' => 'account-password', '_route' => 'customer.password.change.view',);
}
not_customerpasswordchangeview:
}
Last edited by anti-conformiste (23-06-2014 20:36:04)