Welcome Guest, Not a member yet? Register   Sign In
CLi issues
#1

(This post was last modified: 10-09-2024, 05:58 AM by noah88.)

Routes:
$routes->cli('send-broadcast/ ( : segment)', 'BroadcastControl :: sendBroadcast/$1');

Trying to run the command:
php public/index.php send-broadcast "1"

get this error:
[TypeError]
Cannot assign CodeIgniter\HTTP\CLIRequest to property CodeIgniter\Security\Security::$request of type CodeIgniter\HTTP\IncomingRequest


May I know how to define the CLiRequest and how to I run the command using php code instead?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB