From 6bef39b0f1fa0c014ba6dd4474b93972468019db Mon Sep 17 00:00:00 2001 From: Hirohisa Kawase Date: Tue, 30 Oct 2012 13:17:33 +0900 Subject: [PATCH] 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:Hirohisa Kawase --- laravel/documentation/views/html.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/laravel/documentation/views/html.md b/laravel/documentation/views/html.md index aabe244d..58e92a95 100644 --- a/laravel/documentation/views/html.md +++ b/laravel/documentation/views/html.md @@ -40,7 +40,7 @@ #### Generating a reference to a CSS file: #### 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 @@ #### Generating a link from a URI: #### 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 @@ #### Creating lists from an array of items: 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'));