Commit 6bef39b0 authored by Hirohisa Kawase's avatar Hirohisa Kawase

Correct document page of HTML page.

No exist secure_link() function, so changed to link_to_secure().
The 2nd parameter of HTML::style() is array, but passed a string in sample code.
Signed-off-by: 's avatarHirohisa Kawase <hiro.soft@gmail.com>
parent 205cc486
......@@ -40,7 +40,7 @@ For example, the < symbol should be converted to its entity representation. Conv
#### Generating a reference to a CSS file using a given media type:
echo HTML::style('css/common.css', 'print');
echo HTML::style('css/common.css', array('media' => 'print'));
*Further Reading:*
......@@ -55,7 +55,7 @@ For example, the < symbol should be converted to its entity representation. Conv
#### Generating a link that should use HTTPS:
echo HTML::secure_link('user/profile', 'User Profile');
echo HTML::link_to_secure('user/profile', 'User Profile');
#### Generating a link and specifying extra HTML attributes:
......@@ -119,7 +119,7 @@ The "mailto" method on the HTML class obfuscates the given e-mail address so it
echo HTML::ol(array('Get Peanut Butter', 'Get Chocolate', 'Feast'));
echo HTML::ul(array('Ubuntu', 'Snow Leopard', 'Windows'));
echo HTML::dl(array('Ubuntu' => 'An operating system by Canonical', 'Windows' => 'An operating system by Microsoft'));
<a name="custom-macros"></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment