Difference between #107 and #108 of
Yii v2 snippet guide

Revision #108 has been created by rackycz on Sep 22, 2019, 5:55:01 PM with the memo:

« previous (#107) next (#109) »


Title unchanged

Yii v2 snippet guide

Category unchanged


Yii version unchanged


Tags unchanged


Content changed

- [https://www.yiiframework.com/wiki/250/yii-for-beginners](https://www.yiiframework.com/wiki/250/yii-for-beginners)
- [https://www.yiiframework.com/wiki/462/yii-for-beginners-2](https://www.yiiframework.com/wiki/462/yii-for-beginners-2)

... and today I am beginning with Yii 2 so I will also gather my snippets and publish them here so we all can quickly setup the yii-basic-demo just by copying and pasting. This is my goal - to show how-to without long descriptions.

> ... technologies should not require users to study them deeply in order to run basic functionalities. Ordinary things should be copied and pasted so that one is happy that it works and thus motivated to study more ...
I have 4 years of experiences with Yii 1, but I havent used it for almost 5 years so many things in Yii 2 are new for me again. Plus 
I was suprised that the Yii 2 demo application does not contain some basic functionalities (like login via DB, translations etc) which must be implemented in the most of web projects so I will focus on them. Plus I will talk about GitLab.

If you find any problems in my snippets, let me know, please.
- If a validator needs the method, it cannot be converted into JavaScript so the rule is checked only in the moment when user sends the form to the server - after successful JavaScript validation.

Now you can also create **CRUD**
 fot the USer model using GII:

- [http://localhost/basic/web/index.php?r=gii](http://localhost/basic/web/index.php?r=gii).

CRUD = Create Read Update Delete = views and controller. On the GII page enter following values:
4 0
Viewed: 44 866 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Sep 19, 2019
Last updated: a day ago
Update Article


View all history