Welcome Guest, Not a member yet? Register   Sign In
Error Passing 32 Bit Integer in URL
#5

(This post was last modified: 04-05-2024, 01:36 PM by cx3700.)

(04-05-2024, 01:19 AM)kenjis Wrote: Cannot reproduce.

PHP Code:
<?php

namespace App\Controllers;

class 
Home extends BaseController
{
    public function index(): string
    
{
        $device $this->request->getGet('device');

        dd($device);
    }


Navigatet to http://localhost:8080/?device=4294967295

$device string (10) "4294967295"


My URL has a controller path /event.

What’s your route look like?

Mine is get(‘event’, ‘Event::index);

Can you echo it to the view without casting it as a string?
Reply


Messages In This Thread
Error Passing 32 Bit Integer in URL - by cx3700 - 04-04-2024, 09:01 PM
RE: Error Passing 32 Bit Integer in URL - by cx3700 - 04-05-2024, 01:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB