Welcome Guest, Not a member yet? Register   Sign In
Undefined Variable 500 Error
#4

You code has another critical error. The method must return a string, but nothing is returned.
You must remove `: string`.


PHP Code:
    public function index(): string
    
{
        echo $dd;
    
Reply


Messages In This Thread
Undefined Variable 500 Error - by mywebmanavgat - 12-18-2023, 09:06 AM
RE: Undefined Variable 500 Error - by InsiteFX - 12-18-2023, 11:10 AM
RE: Undefined Variable 500 Error - by kenjis - 12-18-2023, 07:04 PM
RE: Undefined Variable 500 Error - by kenjis - 12-18-2023, 07:05 PM
RE: Undefined Variable 500 Error - by kenjis - 12-18-2023, 07:10 PM
RE: Undefined Variable 500 Error - by kenjis - 12-19-2023, 03:20 AM
RE: Undefined Variable 500 Error - by kenjis - 12-19-2023, 03:09 AM
RE: Undefined Variable 500 Error - by kenjis - 12-19-2023, 06:05 AM
RE: Undefined Variable 500 Error - by kenjis - 12-19-2023, 10:55 PM
RE: Undefined Variable 500 Error - by kenjis - 12-20-2023, 12:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB