Yii v2 snippet guide

Comparing #177 with #178

Revision #178 was created by rackycz rackycz on Mar 21, 2020, 11:20:44 AM.

formatting

Content

[...]
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.


 
 
**Prerequisities**
---
Skip this paragraph if you know how to run your Yii demo project...
[...]
... but it should work out-of-the-box if you use DB name "yii2basic" which is also used in examples below ...


 
 
 
**Yii demo app + GitLab**
---
[...]
Then you can start to modify you project, for example based on this "tutorial".


 
 
 
**Automatical copying from GitLab to FTP**
---

I found these two pages where things are explained: [link](https://www.savjee.be/2019/04/gitlab-ci-deploy-to-ftp-with-lftp/) [link](https://stackoverflow.com/questions/49632077/use-gitlab-pipeline-to-push-data-to-ftpserver) and I just copied something.

You only need to create 1 file in your GitLab repository. It is named .gitlab-ci.yml and it should contain following code:
[...]