Welcome Guest, Not a member yet? Register   Sign In
CLI load first in route?
#1

I have a member page,
and this is autoroute,
Besides that, I added a CLI route with the prefix name "cron/function", it is located in app/Cron/*.
However, my auto route with the member/dashboard url doesn't work as it should.

When the route with $routes->cli('cron/function/up', 'App\Cron\Function::up') is removed it can run normally.

what's wrong with the auto route?

[Image: Screenshot%202024-02-13%20151954.png]
Reply
#2

Check your routes:
Code:
$ php spark routes
Reply
#3

This bug?
https://forum.codeigniter.com/showthread.php?tid=86977
Reply
#4

(02-13-2024, 02:54 AM)kenjis Wrote: Check your routes:
Code:
$ php spark routes

(02-13-2024, 03:05 AM)kenjis Wrote: This bug?
https://forum.codeigniter.com/showthread.php?tid=86977

I'm trying to upgrade from v4.3.6 to v4.3.7
but the error I said appears.
In previous version is no problem.
Reply
#5

Run step debugging with your IDE, and find out the cause.
Reply
#6

(02-13-2024, 02:54 AM)kenjis Wrote: Check your routes:
Code:
$ php spark routes

(02-15-2024, 07:41 PM)kenjis Wrote: Run step debugging with your IDE, and find out the cause.


I've identified the issue. My route configuration currently stands as follows:

PHP Code:
$routes->cli('serial/(:any)''\App\Cron\Serial::$1'); 

How can I effectively pass the value of $1?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB