Yii2 and MongoDb configuration with PHP7.0-fpm and NGiNX
| Yii2

peclList to do:
– Install MongoDB on Debian/Linux
– Install requires MongoDB PHP Extension
– Install MongoDB Extension for Yii 2
– Yii2 file configuration to use MongoDB
Read more…


Yii2: configuration of the framework, components and modules
| Yii2

yii2 logoConfiguration file Yii2 basic template is in the path config/web.php. In case of configuration Yii2 advanced template, frontend and backend have their own configuration files: frontend/config/main.php and backend/config/main.php
Additionally, get the configuration from a common file common/config/main.php Read more…


Nginx config for Yii2 advanced project
| Yii2

nginxTo work properly Yii2 framework with NGINX, have to do:
Do poprawnej pracy frameworka Yii z serwerem HTTP Nginx, nale┼╝y:

  1. Install framework Yii2 template advanced
  2. Configuration NIGNX in config file
  3. Configuration Yii2 in backend config file

Read more…


Popular search terms:
| |

Yii2 form field
| Yii2

yii2 logo
This description is for Yii2 forms with model.
Form can have many type of fields. e.g:

  1. Field input (single-line)
  2. Field textarea (multi-line)
  3. Field radio (one choice)
  4. Field checkbox (one or several selection)
  5. Field select/dropDownList (one or several selection)
  6. Field hidden
  7. Field upload file
  8. Field password
  9. Field with a choice of type HTML5
    • text
    • rmail
    • password
    • date
    • number
    • Address URL
    • phone number
    • color
    • range

Read more…


Popular search terms:
| | |

Yii2 tests: Codeception configuration and first test
| Yii2

codeception logoThis tutorial is for Yii2 Basic Application Template. Yii2 especially the version 2.0.10+ help to begin tests with codeception. If Yii2 and codeception are install, we can compile and run default tests with command: (root path of application). Read more…


Redirect http to https and WWW to non-WWW NGINX Yii2 WordPress
| NGINX Yii2

nginx folderFull example redirect all HTTP requests to HTTPS and WWW to non-WWW with Nginx. You can use this for to WordPress, Yii2 basic application template. Read more…


Yii2 SEO: Pretty URLs, meta titles and meta descriptions
| Yii2

yii2 seo For search engine optimization SEO consists of many parts. I chose a few: Read more…


Popular search terms:
|

Which Yii2 project template to choose, basic or advanced?
| Yii2

yii2 basic or advancedBefore installation framework Yii2 we have to choose two version: Yii2 Basic Project Template and Yi2 Advanced Project Template
Looking at the functionality of both version can have the same functions. Even if the basic version does not have some functionality, can be added.

The main different of these versions is that the Yii2-app-advanced contain 2 separated application (folder frontend and backend) with shared code (folder common and vendor). Read more…


Installing framework Yii2 basic advanced on Linux
| Yii2

yii2 install
Install framework Yii2 is very simple, if you have correctly install system to management packages PHP – composer. Read more…