Multilingual trees in Yii2 using the example of creating a menu module

 3r31112. 3r3-31. 3r31078. Introduction
 3r31112. 3r31100. Many novice web developers are faced with the need to create menus, directories or rubricators for their project on Yii? which would have a hierarchical structure, but at the same time support multilingualism. The task is quite simple, but not quite obvious within the framework of this framework. There are a large number of ready-made extensions for creating tree structures (menus, catalogs, etc.), but it is rather difficult to find a solution that would support full-fledged work with several languages. And we are talking here not about ...
+ 0 -

We increase the randomness of that, and so[наверно] [почти]randomly

We increase the randomness of that, and so[наверно] [почти]randomly  
random numbers are more tasty if they are slightly peppered
 
 
We will combine theory with practice-we will show that an improvement in the entropy of random sequences is possible, after which we look at the source codes that do this.
 
 
I really wanted to write about the fact that qualitative, that is, highly entropic, generation of random numbers is critically important in solving a huge number of problems, but this is probably superfluous. I hope everyone knows this.
 
 
In the pursuit of qualitative random numbers, people invent very ingenious adaptations (see, eg, ...
+ 0 -

PHP Digest 138 (August 20 - September ? 2018)

PHP Digest 138 (August 20 - September ? 2018)

 
A fresh selection with links to news and materials. In the release: the latest PHP 7.3 beta, Laravel Nova, a site with ideas for the next versions of PHP, news about Yii ? a batch of useful tools, videos, and much more.
 
Enjoy reading!
 
PHP ??? Beta 3 - The last beta in the cycle. The next release will be RC ? which is is expected on September 13 .
 
 
Among the changes:
 
• Improvements to Heredoc and Nowdoc syntax RFC
 
• The json_encode () and json_decode ...
+ 0 -

PHP, YII2 and the formation of large excel-files

Beginning


 
One accounting and reporting system supported by our company began to grow very quickly in the amount of data stored. The system is written in PHP using the Yii2 framework. Initially, the reports were built through the library PhpSpreadsheet, which replaced the already long deprecated, PhpExcel.
 
 
Among the different types of reporting was one very large - in fact the complete set of all data stored in the database should be uploaded into one excel table. At the initial stage, there were no problems, but when the volume began to exceed many hundreds of thousands of records, the ...[/h]
Yii / PHP
+ 0 -

Choose Yii2 or laravel

Choose Yii2 or laravel

Introduction


 
I already wrote a similar article, but it was very incomplete and not provided with examples, so I decided to take a second attempt and try to solve this issue most fully!
 
 
In this article, all the subtleties of development on frameworks will not be considered, since it is not possible to lay it down within the framework of one article. However, you can explain in sufficient detail those nuances that will help in choosing to study or implement a particular project. Compare will be Yii2 and Laravel. I understand that this is a fairly holivar topic, the result of which usually ...[/h]
+ 0 -

Own field validation for Rules in one class

The validation of input data is deservedly one of the most important rules in the entire IT field. If you narrow down the scope of activities before the development of Web sites, it will mainly deal with the validation of data from forms.
 
 
Own field validation for Rules in one class
 
 
I do not think that many developers like to check the input data and do it carefully enough, therefore in modern frameworks such as Yii 2 , functions are provided. rules () for models and classes-validators, which, although they do not get rid of this routine, but, at least, make this process less tedious.
 
 
In the current documentation Yii 2 ...
Yii / PHP
+ 0 -

Release of Yii ??? and database extensions with fixed vulnerabilities

Today, we are releasing Yii updates for several recent versions of 2.0.x and official extensions to support non-relational databases to fix the vulnerabilities found. Patches fix the problem in ActiveRecord layer methods: findOne () and findAll () , which can tolerate SQL injection if the incoming data is not properly prepared.
 

We view this as a vulnerability in Yii because the documentation for these methods did not contain an explicit warning that in some cases the transmission of unfiltered user data could be dangerous. We thank ...

+ 0 -