From 46715e5ca1451de2faa32b5866c37a40c8051423 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 5 Oct 2011 17:36:22 -0500 Subject: fixing code spacing in Common and CLI docs --- user_guide_src/source/general/cli.rst | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'user_guide_src/source/general/cli.rst') diff --git a/user_guide_src/source/general/cli.rst b/user_guide_src/source/general/cli.rst index e6f812570..8fcf31702 100644 --- a/user_guide_src/source/general/cli.rst +++ b/user_guide_src/source/general/cli.rst @@ -36,10 +36,18 @@ Let's try it: Hello World! Let's create a simple controller so you can see it in action. Using your text editor, create a file called tools.php, and put the following code -in it: +in it:: + + - Then save the file to your application/controllers/ folder. Now normally you would visit the your site using a URL similar to this:: @@ -49,11 +57,15 @@ Now normally you would visit the your site using a URL similar to this:: Instead, we are going to open Terminal in Mac/Lunix or go to Run > "cmd" in Windows and navigate to our CodeIgniter project. +.. code-block:: bash + $ cd /path/to/project; $ php index.php tools message If you did it right, you should see Hello World!. +.. code-block:: bash + $ php index.php tools message "John Smith" Here we are passing it a argument in the same way that URL parameters -- cgit v1.2.3-24-g4f1b