From 1414987474e8d9a96e640ba9378d447677cfc387 Mon Sep 17 00:00:00 2001
From: Derek Allard The HTML Helper file contains functions that assist in working with HTML. The following functions are available: Generates line break tags (<br />) based on the number you submit. Example: The above would produce: <br /><br /><br /> Lets you create HTML <h1> tags. The first parameter will contain the data, the
second the size of the heading. Example: The above would produce: <h3>Welcome!</h3> Lets you create HTML <img /> tags. The first parameter contains the image source. Example:
+
Loading this Helper
@@ -68,17 +78,18 @@ HTML Helper
br()
+br()
echo br(3);
heading()
+heading()
echo heading('Welcome!', 3);
img()
+
+img()
echo img('images/picture.jpg');
@@ -98,7 +109,8 @@ second the size of the heading. Example:
// gives <img src="http://site.com/images/picture.jpg" />
Lets you create HTML <link /> tags. This is useful for stylesheet links, as well as other links. The parameters are href, with optional rel, type, title, media and index_page. index_page is a TRUE/FALSE value that specifics if the href should have the page specified by $config['index_page'] added to the address it creates.
echo link_tag('css/mystyles.css');
// gives <link href="http://site.com/css/mystyles.css" rel="stylesheet" type="text/css" />
Generates non-breaking spaces ( ) based on the number you submit. Example:
echo nbs(3);
The above would produce:
-Permits you to generate ordered or unordered HTML lists from simple or multi-dimensional arrays. Example:
@@ -252,7 +264,7 @@ echo ul($list, $attributes); -Helps you generate meta tags. You can pass strings to the function, or simple arrays, or multidimensional ones. Examples:
@@ -290,7 +302,7 @@ echo meta($meta); -Helps you generate document type declarations, or DTD's. XHTML 1.0 Strict is used by default, but many doctypes are available.
-- cgit v1.2.3-24-g4f1b