Бортовой журнал Ктулху

Программирование

This diagram shows 6 types of database models: Flat Model, Hierarchical Model, Relational Model, Star Schema, Snowflake Model, Network Model

 

Here are the 8 most useful CSS generators:

1/ Button CSS generator

100+ buttons you can use in your project.

I've got a string with dates from date picker and diveded it on two parts: `from` and `to`.

Both parts has been converted into time.

That is how can we make a custom validation for field `Password` in Yii2. For example, the password must contain at least 1 uppercase letter, 1 lowercase letter, and 1 digit, with a length ranging from 8 to 32 characters.

It's not too hard. Just create method validateCustomPassword() in model.

Настоящие цифровые часы из цифр в виде классического циферблата с движущимися стрелками.

Pjax is a technology that facilitates updating part of a page without a full reload. In the context of Yii2, Pjax is commonly used to update data on the page, including pagination navigation.

And i give an example how it works.

 

Наверное, есть много людей, которых бесят стандартные таблицы. Особенно, когда на маленьких экранах их содержимое начинает стремительно исчезать за пределами правой части экрана. 

How to change table view in Yii2 component GridView.

First of all, you should override standard files. For this you need to create in /%yii dir%/components your own "GridView", en example "MyGridView".

Buenos dias, mi amigos.

Today we will add an local extra plugins into CKEditor CDN.

Сегодня я расскажу как добавить недостающие плагины в CKEditor CDN. Плагин будет размещен где-то локально и успешно будет подключен в визуальный редактор.

По умолчанию в Yii2 ActoveForm <label>  идет перед  <input>. Но бывают ситуации, когда нужно сделать иначе. В этом нам (не нам, а вам) поможет пользовательский шаблон.

--

By default in Yii2 ActiveForm <label> displays before <input>. But sometimes it needs to display <label> before. In such cases, we can utilize a custom template to achieve this.