Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!
Die Funktion HeaderUtil::redirect sollte durch RedirectResponse ersetzt werden.
Bislang
<?php
namespace wcf\action;
use wcf\system\request\LinkHandler;
use wcf\util\HeaderUtil;
final class ExampleRedirectAction extends AbstractAction
{
public function execute()
{
parent::execute();
// Redirect to the landing page.
HeaderUtil::redirect(
LinkHandler::getInstance()->getLink()
);
exit;
}
}
Display More
Abofort
<?php
namespace wcf\action;
use Laminas\Diactoros\Response\RedirectResponse;
use wcf\system\request\LinkHandler;
final class ExampleRedirectAction extends AbstractAction
{
public function execute()
{
parent::execute();
// Redirect to the landing page.
return new RedirectResponse(
LinkHandler::getInstance()->getLink()
);
}
}
Display More
Don’t have an account yet? Register yourself now and be a part of our community!