From 8ce0a1d0f2b67eaf998aca58913cf87652b4b0d5 Mon Sep 17 00:00:00 2001
From: "ctrlaltca@gmail.com" <>
Date: Wed, 1 Jun 2011 20:01:35 +0000
Subject: added documentation for THead class
---
.../quickstart/protected/pages/Controls/Head.page | 34 +++++++++++++++++++++-
.../protected/pages/Controls/Standard.page | 2 +-
framework/Web/UI/WebControls/THead.php | 2 +-
3 files changed, 35 insertions(+), 3 deletions(-)
diff --git a/demos/quickstart/protected/pages/Controls/Head.page b/demos/quickstart/protected/pages/Controls/Head.page
index 7e4a19ec..594bb069 100644
--- a/demos/quickstart/protected/pages/Controls/Head.page
+++ b/demos/quickstart/protected/pages/Controls/Head.page
@@ -4,7 +4,39 @@
-TBD
+THead displays a head element on a page. It displays the content
+enclosed in its body and the page title set by the Title property.
+
+
+
+In addition, stylesheets and JavaScripts registered via
+
+ - TClientScriptManager::registerStyleSheet,
+ - TClientScriptManager::registerStyleSheetFile,
+ - TClientScriptManager::registerHeadJavaScript and
+ - TClientScriptManager::registerHeadJavaScriptFile
+
+will also be displayed in the head.
+
+
+THead also manages and displays meta tags through its MetaTags
+property. You can add a meta object to the collection in code dynamically,
+or add it in template using the following syntax
+
+
+
+<com:THead>
+ <com:TMetaTag HttpEquiv="Pragma" Content="no-cache" />
+ <com:TMetaTag Name="keywords" Content="Prado" />
+</com:THead>
+
+
+
+Note, TPage has a property Head that refers to
+the THead control currently on the page. A page can have at most one THead
+control. Although not required, it is recommended to place a THead on your page.
+Without a THead on the page, stylesheets and javascripts in the current page
+theme will not be rendered.
$Id$
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page
index 38a541ca..9fde5a29 100644
--- a/demos/quickstart/protected/pages/Controls/Standard.page
+++ b/demos/quickstart/protected/pages/Controls/Standard.page
@@ -43,7 +43,7 @@
TFileUpload represents a file upload field. It allows users to upload a file to server.
- *
+
THead represents the <head> element on an HTML Web page. It is required by a PRADO page should it use themes.
diff --git a/framework/Web/UI/WebControls/THead.php b/framework/Web/UI/WebControls/THead.php
index 36b81648..9daa6d3b 100644
--- a/framework/Web/UI/WebControls/THead.php
+++ b/framework/Web/UI/WebControls/THead.php
@@ -31,7 +31,7 @@
*
*
* Note, {@link TPage} has a property {@link TPage::getHead Head} that refers to
- * the THead control currently on the page. A page can have at most once THead
+ * the THead control currently on the page. A page can have at most one THead
* control. Although not required, it is recommended to place a THead on your page.
* Without a THead on the page, stylesheets and javascripts in the current page
* theme will not be rendered.
--
cgit v1.2.3