1- ############################
2- Running via the Command Line
3- ############################
1+ ###########################
2+ Running Controllers via CLI
3+ ###########################
44
55As well as calling an application's :doc: `Controllers </incoming/controllers >`
66via the URL in a browser they can also be loaded via the command-line
@@ -10,27 +10,6 @@ interface (CLI).
1010 :local:
1111 :depth: 2
1212
13- What is the CLI?
14- ================
15-
16- The command-line interface is a text-based method of interacting with
17- computers. For more information, check the `Wikipedia
18- article <https://en.wikipedia.org/wiki/Command-line_interface> `_.
19-
20- Why run via the command-line?
21- =============================
22-
23- There are many reasons for running CodeIgniter from the command-line,
24- but they are not always obvious.
25-
26- - Run your cron-jobs without needing to use *wget * or *curl *.
27- - Make your cron-jobs inaccessible from being loaded in the URL by
28- checking the return value of :php:func: `is_cli() `.
29- - Make interactive "tasks" that can do things like set permissions,
30- prune cache folders, run backups, etc.
31- - Integrate with other applications in other languages. For example, a
32- random C++ script could call one command and run code in your models!
33-
3413Let's try it: Hello World!
3514==========================
3615
0 commit comments