News


09/29/2022 - 02:00

GridView show sum of columns in footer
`PHP
use yii\grid\DataColumn;
/**

  • Sum of all the values in the column
  • @author shiv

    /
    class TSumColumn extends DataColumn {
    public function getDataCellValue($model, $key, $index)
    {




09/29/2022 - 02:00

I have a calls which help me display json directly in html table.
Json2Table::formatContent($json);

The code of Json2Table class is here
============================================





09/28/2022 - 19:40

Node v24.0.0 (Current)





09/28/2022 - 19:40

Node v20.4.0 (Current)





09/28/2022 - 15:03


The Laravel team released 9.32 with dd() file and line output, encrypting and decrypting .env files, a short syntax for blade component attributes, and more.
The post Laravel 9.32 Released appeared first on Laravel News.





09/28/2022 - 10:56

Affected versions

Twig >1.0.0,<1.44.7 || >2.0.0,<2.15.3 || >3.0.0,<3.4.3 are affected by this security issue.

The issue has been fixed in Twig 1.44.7, 2.15.3 and 3.4.3.

Description

When using the filesystem loader to load templates for which the name is a user input, it is possible to use the source or include statement to read arbitrary files from outside the templates directory when using a namespace like @somewhere/../some.file (in such a case, validation is bypassed).





09/28/2022 - 02:00

In India have Aadhar number an we may need to valid it a input.
So I created a validator for yii2
use yii\validators\Validator;

class TAadharNumberValidator extends Validator
{

public $regExPattern = '/^\d{4}\s\d{4}\s\d{4}$/';

public function validateAttribute($model, $attribute)
{
if (preg_match($this->regExPattern, $model->$attribute)) {
$model->addError($attribute, 'Not valid Aadhar Card Number');
}
}
}





09/27/2022 - 20:12

WordPress 6.1 Beta 2 is now available for download and testing.

This version of the WordPress software is under development. Please do not install, run, or test this version of WordPress on production or mission-critical websites. Instead, it is recommended that you test Beta 2 on a test server and site. 

You can test WordPress 6.1 Beta 2 in three ways: