diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-11-09 00:33:08 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-11-09 00:33:08 +0100 |
commit | 151b2f7d102a5988b63255d27c9ad78202c16355 (patch) | |
tree | eb5a790407c79ea3a2c74e26c1d97473effae2a2 /demos/quickstart/protected/pages/Database | |
parent | c198ade3610cecd190b74d8519947ad734a0bcca (diff) |
Added (partial) website + misc updates for release
* recreated the prado website in demos/
* updated some docs to reflect the usage of jquery; removed guide to
prototype
* updated composer
* added task for apigen4 (theme still missing)
Diffstat (limited to 'demos/quickstart/protected/pages/Database')
-rw-r--r-- | demos/quickstart/protected/pages/Database/ViewsArUpdate.page | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/demos/quickstart/protected/pages/Database/ViewsArUpdate.page b/demos/quickstart/protected/pages/Database/ViewsArUpdate.page index 5dd084c4..2df1d3d7 100644 --- a/demos/quickstart/protected/pages/Database/ViewsArUpdate.page +++ b/demos/quickstart/protected/pages/Database/ViewsArUpdate.page @@ -1,6 +1,6 @@ <com:TContent ID="body" > <h1 id="138046">Views - AR Classes Update</h1> -<com:SinceVersion Version="4.0" /> +<com:SinceVersion Version="3.3" /> <p class="block-content"> Usually when you use <tt>Active Records Classes</tt> to interact with your Data Base you also build some proper views to handle them. To save every element of your views in your Data Base @@ -9,9 +9,9 @@ Thats why Prado offers an automatic mechanism to update your views from your AR Classes and vice versa. </p> -<h2>Updating views from AR Classes</h2> +<h2 id="244034">Updating views from AR Classes</h2> -<p>Instead of assign each attribute in your AR Class to your view controls like this:</p> +<p id="1220005" class="block-content">Instead of assign each attribute in your AR Class to your view controls like this:</p> <com:TTextHighlighter CssClass="source block-content"> $student = AR_Student::finder()->findByPk(1); $this->name->Text = $student->name; @@ -20,7 +20,7 @@ $this->gender->Text = $student->gender; $this->average->Text = $student->average; </com:TTextHighlighter> -<p>You can do the same as follows:</p> +<p id="1220006" class="block-content">You can do the same as follows:</p> <com:TTextHighlighter CssClass="source block-content"> $student = AR_Student::finder()->findByPk(1); @@ -28,8 +28,8 @@ $this->tryToUpdateView($student); </com:TTextHighlighter> -<h2>Updating AR Classes from views</h2> -<p>Instead of assign each attribute in your views to your AR Classes like this:</p> +<h2 id="244035">Updating AR Classes from views</h2> +<p id="1220007" class="block-content">Instead of assign each attribute in your views to your AR Classes like this:</p> <com:TTextHighlighter CssClass="source block-content"> $student = new AR_Student(); $student->name = $this->name->Text; @@ -39,7 +39,7 @@ $student->average = $this->average->Text; $student->save(); </com:TTextHighlighter> -<p>You can do the same as follows:</p> +<p id="1220008" class="block-content">You can do the same as follows:</p> <com:TTextHighlighter CssClass="source block-content"> $student = new AR_Student(); |