From 151b2f7d102a5988b63255d27c9ad78202c16355 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Mon, 9 Nov 2015 00:33:08 +0100 Subject: 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) --- .../quickstart/protected/pages/Database/ViewsArUpdate.page | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'demos/quickstart/protected/pages/Database/ViewsArUpdate.page') 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 @@

Views - AR Classes Update

- +

Usually when you use Active Records Classes 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.

-

Updating views from AR Classes

+

Updating views from AR Classes

-

Instead of assign each attribute in your AR Class to your view controls like this:

+

Instead of assign each attribute in your AR Class to your view controls like this:

$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; -

You can do the same as follows:

+

You can do the same as follows:

$student = AR_Student::finder()->findByPk(1); @@ -28,8 +28,8 @@ $this->tryToUpdateView($student); -

Updating AR Classes from views

-

Instead of assign each attribute in your views to your AR Classes like this:

+

Updating AR Classes from views

+

Instead of assign each attribute in your views to your AR Classes like this:

$student = new AR_Student(); $student->name = $this->name->Text; @@ -39,7 +39,7 @@ $student->average = $this->average->Text; $student->save(); -

You can do the same as follows:

+

You can do the same as follows:

$student = new AR_Student(); -- cgit v1.2.3