summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Database/ViewsArUpdate.page
diff options
context:
space:
mode:
authorJean-Luc Gyger <jean-luc.gyger@vysual.ch>2016-02-11 10:01:12 +0100
committerJean-Luc Gyger <jean-luc.gyger@vysual.ch>2016-02-11 10:01:12 +0100
commitd70861a8f9368773f2f0291454e9420174e6c14a (patch)
treee44a32e401211422fb05da355c9eef4d5934d9e9 /demos/quickstart/protected/pages/Database/ViewsArUpdate.page
parentd32f65815eb6feb4bcb8a0c85572f722d7826342 (diff)
parent275f16b90a92c62935cb691d11e0bd124acf64e4 (diff)
Merge branch 'master' of https://github.com/majuca/prado
Diffstat (limited to 'demos/quickstart/protected/pages/Database/ViewsArUpdate.page')
-rw-r--r--demos/quickstart/protected/pages/Database/ViewsArUpdate.page14
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();