From 2f66ee3b7420de94b640ea528778005571dbf5a5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 28 Jan 2015 16:37:20 -0500 Subject: Views -AR Classes Update Documentation 50% --- .../protected/pages/Database/ViewsArUpdate.page | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 demos/quickstart/protected/pages/Database/ViewsArUpdate.page (limited to 'demos/quickstart/protected/pages/Database') diff --git a/demos/quickstart/protected/pages/Database/ViewsArUpdate.page b/demos/quickstart/protected/pages/Database/ViewsArUpdate.page new file mode 100644 index 00000000..a2f7ff68 --- /dev/null +++ b/demos/quickstart/protected/pages/Database/ViewsArUpdate.page @@ -0,0 +1,28 @@ + +

Views - AR Classes Update

+ +

+ Usually when have Active Records Classes + there are correspondingly the proper views to handle them. +

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

+ Also you can do the reverse operation. +

+ + +$student = new AR_Student(); +$this->tryToUpdateAR($student); +$student->save(); + + +
Info: + When an AR class attribute does not match any of the controls IDs on the view, nothing will happen +
+ +
\ No newline at end of file -- cgit v1.2.3