Welcome Guest, Not a member yet? Register   Sign In
How to call models outside CodeIgniter controller?
#2

How do you run the ExportAlert.php?

If you run it in CLI, CI4 provides Spark commands.
https://codeigniter4.github.io/CodeIgnit...mands.html

If you just run like php /path/to/ExportAlert.php, you do not use CI4.
In such a case, you need to load or autoload all classes by yourself.
Reply


Messages In This Thread
RE: How to call models outside CodeIgniter controller? - by kenjis - 03-22-2023, 02:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB