Welcome Guest, Not a member yet? Register   Sign In
Replacement for show_error-function from CI3
#1

(This post was last modified: 08-29-2022, 03:11 AM by groovebird.)

Hi,

i use show_error($message, 403, 'forbidden'); in CI3. What is the replacement for this function in CI4?
Reply
#2

Code:
$response->setStatusCode(403)
                    ->setBody('You do not have access to this page');
Reply
#3

(This post was last modified: 09-02-2022, 11:28 AM by groovebird.)

(08-29-2022, 03:22 AM)JustJohnQ Wrote:
Code:
$response->setStatusCode(403)
                    ->setBody('You do not have access to this page');

Thank you.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB