Yii3 - How to start

Comparing #69 with #70

Revision #70 was created by rackycz rackycz on Aug 31, 2026, 8:42:41 PM.

UpdateAction

Content

[...]
- [QueryDataReader](https://github.com/rackycz/yii3web/blob/master/src/Entity/QueryBuilder/QueryDataReader.php)
- [View](https://github.com/rackycz/yii3web/blob/master/src/User/View/index.php)

## User - CRUD

In my demo you can see how I created the UpdateAction + form
 etc. to enable editing of users. I will keep investigating if it can be done with less coding. 

- [UpdateAction](https://github.com/rackycz/yii3web/blob/master/src/User/Action/UpdateAction.php)
[...]
- [Form + Validation](https://github.com/rackycz/yii3web/blob/master/src/User/Form/UserUpdateForm.php)

In Yii3, validation rules are not part of the model - special form-class must be created. In Yii2 you didn't need the form-class for model-driven
 (db-driven) forms. ## JS client - Installable Vuejs3 PWA If you create a REST API you may be interested in a JS frontend that will communicate with it using Ajax. Below you can peek into my very simple VueJS3 attempt. It is an installable PWA application that works in offline mode (=1 data transfer per day, not on every mouse click) and is meant for situations when customer does not have wifi everywhere. See my [Gitlab](https://gitlab.com/radin.cerny/vuejs3-pwa-demo-plus).