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.

[news] Yii widgets 1.0.0

First version of Yii widgets package was released.
The package provides extra Yii-specific widgets and utilities:

  • Alert
  • Block
  • Breadcrumbs
  • ContentDecorator
  • Dropdown
  • FragmentCache
  • Menu

See package README for details.





[news] Yii 1.1.26 is released

We are very pleased to announce that Yii Framework version 1.1.26 is released.
You can download it at yiiframework.com/download/.





[wiki] GridView show sum of columns in footer.

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)
    {




[wiki] Convert JSON data to html table for display on page

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

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





[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).