Feed items

  • warning: Declaration of views_handler_argument::init(&$view, &$options) should be compatible with views_handler::init(&$view, $options) in /home/clients/ru/domains/development4web.com/html/sites/all/modules/views/handlers/views_handler_argument.inc on line 48.
  • warning: Declaration of views_handler_filter_boolean_operator::value_validate(&$form, &$form_state) should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/clients/ru/domains/development4web.com/html/sites/all/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 111.
  • warning: Declaration of views_plugin_row_node_view::options_form(&$form, &$form_state) should be compatible with views_plugin_row::options_form($form, &$form_state) in /home/clients/ru/domains/development4web.com/html/sites/all/modules/views/modules/node/views_plugin_row_node_view.inc on line 35.

[wiki] Aadhar Number Validator

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');
}
}
}





[news] Translator 1.1.0

Translator package got minor version that includes enhanced version of SimpleMessageFormatter from now deprecated yiisoft/translator-formatter-simple. This enhanced vesion is able to render plurals for English and replace tokens with modifiers (ignoring modifier logic).





[news] Yii Router 1.2.0

Translator package got minor version that includes enhanced version of SimpleMessageFormatter from now deprecated yiisoft/translator-formatter-simple. This enhanced vesion is able to render plurals for English and replace tokens with modifiers (ignoring modifier logic).





[news] Yii Middleware Dispatcher 3.0.0

Translator package got minor version that includes enhanced version of SimpleMessageFormatter from now deprecated yiisoft/translator-formatter-simple. This enhanced vesion is able to render plurals for English and replace tokens with modifiers (ignoring modifier logic).





[news] Debug extension 2.1.21 released

Debug extension version 2.1.21 was released.
This release adds an ability to collect debug data in console applications. In order to do so, add the following to console application config:





[news] Auth Client extension 2.2.13 released

We are very pleased to announce the release of Gii extension version 2.2.5.
This release adds support for the ::class constant in model generator via the useClassConstant setting and fixes a few bugs.
See the CHANGELOG for details.





[news] MongoDB extension 3.0.0 released

We are very pleased to announce the major release of MongoDB extension version 3.0.0.
This version adds transactions support, PHP 8.1 compatibility and fixes a few bugs.
See the CHANGELOG for details.