Skip to content

Commit 87897ec

Browse files
committed
docs: fix section title underline
1 parent 487ec6d commit 87897ec

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

user_guide_src/source/general/helpers.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ Helpers are typically stored in your **system/Helpers**, or
2929
specified helper is not located there CI will instead look in your
3030
global **system/Helpers** directory.
3131

32+
****************
3233
Loading a Helper
33-
================
34+
****************
3435

3536
.. note:: The URL helper is always loaded so you do not need to load it yourself.
3637

@@ -50,15 +51,15 @@ For example, to load the **Cookie Helper** file, which is named
5051
don't try to assign it to a variable. Just use it as shown.
5152

5253
Loading Multiple Helpers
53-
------------------------
54+
========================
5455

5556
If you need to load more than one helper at a time, you can pass
5657
an array of file names in and all of them will be loaded:
5758

5859
.. literalinclude:: helpers/003.php
5960

6061
Loading in a Controller
61-
-----------------------
62+
=======================
6263

6364
A helper can be loaded anywhere within your controller methods (or
6465
even within your View files, although that's not a good practice), as
@@ -75,7 +76,7 @@ property in Controller instead. See :ref:`Controllers <controllers-helpers>`.
7576
.. _helpers-loading-from-non-standard-locations:
7677

7778
Loading from Non-standard Locations
78-
-----------------------------------
79+
===================================
7980

8081
Helpers can be loaded from directories outside of **app/Helpers** and
8182
**system/Helpers**, as long as that path can be found through a namespace that
@@ -100,8 +101,9 @@ You can also use the following way:
100101
.. note:: The functions within files loaded this way are not truly namespaced.
101102
The namespace is simply used as a convenient way to locate the files.
102103

104+
**************
103105
Using a Helper
104-
==============
106+
**************
105107

106108
Once you've loaded the Helper File containing the function you intend to
107109
use, you'll call it the way you would a standard PHP function.
@@ -114,8 +116,9 @@ your view files you would do this:
114116
Where ``Click Here`` is the name of the link, and ``blog/comments`` is the
115117
URI to the controller/method you wish to link to.
116118

119+
*******************
117120
"Extending" Helpers
118-
===================
121+
*******************
119122

120123
To "extend" Helpers, create a file in your **app/Helpers/** folder
121124
with an identical name to the existing Helper.
@@ -145,8 +148,9 @@ is as follows:
145148
2. {namespace}/Helpers - All namespaces are looped through in the order they are defined.
146149
3. system/Helpers - The base file is loaded last
147150

151+
*********
148152
Now What?
149-
=========
153+
*********
150154

151155
In the Table of Contents, you'll find a list of all the available :doc:`Helpers <../helpers/index>`.
152156
Browse each one to see what they do.

0 commit comments

Comments
 (0)