@@ -368,8 +368,8 @@ In the above example, CodeIgniter would attempt to find a controller named **Hel
368368
369369.. note :: When a controller's short name matches the first segment of a URI, it will be loaded.
370370
371- Let's try it: Hello World!
372- ==========================
371+ Let's try it: Hello World! (Legacy)
372+ ===================================
373373
374374Let's create a simple controller so you can see it in action. Using your text editor, create a file called **Helloworld.php **,
375375and put the following code in it. You will notice that the ``Helloworld `` Controller is extending the ``BaseController ``. you can
@@ -420,8 +420,8 @@ class so that it can inherit all its methods.
420420
421421 .. literalinclude :: controllers/012.php
422422
423- Methods
424- =======
423+ Methods (Legacy)
424+ ================
425425
426426In the above example, the method name is ``index() ``. The ``index() `` method
427427is always loaded by default if the **second segment ** of the URI is
@@ -442,8 +442,8 @@ Now load the following URL to see the comment method::
442442
443443You should see your new message.
444444
445- Passing URI Segments to Your Methods
446- ====================================
445+ Passing URI Segments to Your Methods (Legacy)
446+ =============================================
447447
448448If your URI contains more than two segments they will be passed to your
449449method as parameters.
@@ -482,8 +482,8 @@ see the "Hello World" message.
482482For more information, please refer to the :ref: `routes-configuration-options ` section of the
483483:doc: `URI Routing <routing >` documentation.
484484
485- Organizing Your Controllers into Sub-directories
486- ================================================
485+ Organizing Your Controllers into Sub-directories (Legacy)
486+ =========================================================
487487
488488If you are building a large application you might want to hierarchically
489489organize or structure your controllers into sub-directories. CodeIgniter
0 commit comments