From 866b8138c5f51b0ca544dd8a91c265d9200acab8 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Mon, 21 Apr 2008 22:02:37 +0000 Subject: doc clarifications, example fixes, grammar. --- system/scaffolding/views/stylesheet.css | 286 ++++++++++++++++---------------- user_guide/libraries/parser.html | 10 +- user_guide/libraries/sessions.html | 2 +- user_guide/libraries/trackback.html | 2 +- user_guide/libraries/validation.html | 4 +- 5 files changed, 151 insertions(+), 153 deletions(-) diff --git a/system/scaffolding/views/stylesheet.css b/system/scaffolding/views/stylesheet.css index e2e3aa574..ba6ee0a2f 100644 --- a/system/scaffolding/views/stylesheet.css +++ b/system/scaffolding/views/stylesheet.css @@ -1,143 +1,143 @@ -body { - margin: 0; - padding: 0; - font-family: Lucida Grande, Verdana, Geneva, Sans-serif; - font-size: 11px; - color: #4F5155; - background: #fff url(background.jpg) repeat-x left top; -} - -a { - color: #8B0D00; - background-color: transparent; - text-decoration: none; - font-weight: bold; -} - -a:visited { - color: #8B0D00; - background-color: transparent; - text-decoration: none; -} - -a:hover { - color: #000; - text-decoration: none; - background-color: transparent; -} - - -#header { - margin: 0; - padding: 0; -} - -#header_left { - background-color: transparent; - float: left; - padding: 21px 0 0 32px; - margin: 0 -} - -#header_right { - background-color: transparent; - float: right; - text-align: right; - padding: 35px 50px 20px 0; - margin: 0 -} - -#footer { - margin: 20px 0 15px 0; - padding: 0; -} - -#footer p { - font-size: 10px; - color: #999; - text-align: center; -} - -#outer { - margin: 30px 40px 0 40px; -} - -img { - padding:0; - border: 0; - margin: 0; -} - -.nopad { - padding:0; - border: 0; - margin: 0; -} - -table { - background-color: #efefef; -} - -th { - background-color: #eee; - font-weight: bold; - padding: 6px; - text-align: left; -} - -td { - background-color: #fff; - padding: 6px; -} - - -form { - margin: 0; - padding: 0; -} - -.input { - font-family: Lucida Grande, Verdana, Geneva, Sans-serif; - font-size: 11px; - width: 600px; - color: #333; - border: 1px solid #B3B4BD; - font-size: 11px; - height: 2em; - padding: 0; - margin: 0; -} - -.textarea { - font-family: Lucida Grande, Verdana, Geneva, Sans-serif; - font-size: 12px; - width: 600px; - color: #333; - border: 1px solid #B3B4BD; - padding: 0; - margin: 0; -} - -.select { - background-color: #fff; - font-size: 11px; - font-weight: normal; - color: #333; - padding: 0; - margin: 0 0 3px 0; -} - -.checkbox { - background-color: transparent; - padding: 0; - border: 0; -} - -.submit { - background-color: #8B0D00; - color: transparent; - font-weight: normal; - border: 1px solid #000; - margin: 6px 0 0 0; - padding: 1px 5px 1px 5px; -} +body { + margin: 0; + padding: 0; + font-family: Lucida Grande, Verdana, Geneva, Sans-serif; + font-size: 11px; + color: #4F5155; + background: #fff url(background.jpg) repeat-x left top; +} + +a { + color: #8B0D00; + background-color: transparent; + text-decoration: none; + font-weight: bold; +} + +a:visited { + color: #8B0D00; + background-color: transparent; + text-decoration: none; +} + +a:hover { + color: #000; + text-decoration: none; + background-color: transparent; +} + + +#header { + margin: 0; + padding: 0; +} + +#header_left { + background-color: transparent; + float: left; + padding: 21px 0 0 32px; + margin: 0 +} + +#header_right { + background-color: transparent; + float: right; + text-align: right; + padding: 35px 50px 20px 0; + margin: 0 +} + +#footer { + margin: 20px 0 15px 0; + padding: 0; +} + +#footer p { + font-size: 10px; + color: #999; + text-align: center; +} + +#outer { + margin: 30px 40px 0 40px; +} + +img { + padding:0; + border: 0; + margin: 0; +} + +.nopad { + padding:0; + border: 0; + margin: 0; +} + +table { + background-color: #efefef; +} + +th { + background-color: #eee; + font-weight: bold; + padding: 6px; + text-align: left; +} + +td { + background-color: #fff; + padding: 6px; +} + + +form { + margin: 0; + padding: 0; +} + +.input { + font-family: Lucida Grande, Verdana, Geneva, Sans-serif; + font-size: 11px; + width: 600px; + color: #333; + border: 1px solid #B3B4BD; + font-size: 11px; + height: 2em; + padding: 0; + margin: 0; +} + +.textarea { + font-family: Lucida Grande, Verdana, Geneva, Sans-serif; + font-size: 12px; + width: 600px; + color: #333; + border: 1px solid #B3B4BD; + padding: 0; + margin: 0; +} + +.select { + background-color: #fff; + font-size: 11px; + font-weight: normal; + color: #333; + padding: 0; + margin: 0 0 3px 0; +} + +.checkbox { + background-color: transparent; + padding: 0; + border: 0; +} + +.submit { + background-color: #8B0D00; + color: #FFF; + font-weight: normal; + border: 1px solid #000; + margin: 6px 0 0 0; + padding: 1px 5px 1px 5px; +} diff --git a/user_guide/libraries/parser.html b/user_guide/libraries/parser.html index 48af7ecd9..d72891af9 100644 --- a/user_guide/libraries/parser.html +++ b/user_guide/libraries/parser.html @@ -86,10 +86,8 @@ PHP from your templates (view files).

since using pure PHP in your view pages lets them run a little faster. However, some developers prefer to use a template engine if they work with designers who they feel would find some confusion working with PHP.

-

Also Note: The Template Parser Class is not not a -full-blown template parsing solution. We've kept it very lean on purpose in order to maintain maximum performance. - -

+

Also Note: The Template Parser Class is not a +full-blown template parsing solution. We've kept it very lean on purpose in order to maintain maximum performance.

Initializing the Class

@@ -104,7 +102,7 @@ full-blown template parsing solution. We've kept it very lean on purpose in orde

$this->parser->parse()

-

This variable accepts a template name and data array as input, and it generates a parsed version. Example:

+

This method accepts a template name and data array as input, and it generates a parsed version. Example:

$this->load->library('parser');

@@ -173,7 +171,7 @@ $data = array(
$this->parser->parse('blog_template', $data);

If your "pair" data is coming from a database result, which is already a multi-dimensional array, you can simply -use the database result function:

+use the database result_array() function:

$query = $this->db->query("SELECT * FROM blog");
diff --git a/user_guide/libraries/sessions.html b/user_guide/libraries/sessions.html index a3ca58808..69cc6ba59 100644 --- a/user_guide/libraries/sessions.html +++ b/user_guide/libraries/sessions.html @@ -123,7 +123,7 @@ and encrypting the data automatically.

Note: Session cookies are only updated every five minutes by default to reduce processor load. If you repeatedly reload a page you'll notice that the "last activity" time only updates if five minutes or more has passed since the last time -the cookie was written. This time is configurable my changing the $config['time_to_update'] line in your system/config/config.php file.

+the cookie was written. This time is configurable by changing the $config['time_to_update'] line in your system/config/config.php file.

Retrieving Session Data

diff --git a/user_guide/libraries/trackback.html b/user_guide/libraries/trackback.html index ecc9c21ee..513cbf2c9 100644 --- a/user_guide/libraries/trackback.html +++ b/user_guide/libraries/trackback.html @@ -200,7 +200,7 @@ $this->trackback->send_success();
http://www.your-site.com/index.php/trackback/receive/entry_id -

Notice the entry_id is in the third URI, which you can retrieve using:

+

Notice the entry_id is in the third URI segment, which you can retrieve using:

$this->uri->segment(3); diff --git a/user_guide/libraries/validation.html b/user_guide/libraries/validation.html index bf9796feb..06ab665ca 100644 --- a/user_guide/libraries/validation.html +++ b/user_guide/libraries/validation.html @@ -319,7 +319,7 @@ $rules['password'] = "trim|required|matches[passconf]|md5" $rules['passconf'] = "trim|required";
$rules['email'] = "trim|required|valid_email"; -

In the above, we are "trimming" the fields, converting the password to MD5, and running the username through +

In the above example, we are "trimming" the fields, converting the password to MD5, and running the username through the "xss_clean" function, which removes malicious data.

Any native PHP function that accepts one parameter can be used as a rule, like htmlspecialchars, @@ -446,7 +446,7 @@ error message.

} -

Now open your myform.php view file and update the value in each field so that it has an object corresponding to its name:

+

Now open your myform.php view file and update the value in each field so that it has an attribute corresponding to its name: