helpers\ArrayHelper

All Classes | Methods Inheritance yii\helpers\ArrayHelper » yii\helpers\BaseArrayHelper Available since version 2.0 Source Code https://github.com/yiisoft/yii2/blob/master/framework/helpers/ArrayHelper.php ArrayHelper provides additional array functionality that you can use in your application. Public Methods Method Description Defined By filter() Filters array according to rules specified. yii\helpers\BaseArrayHelper getColumn() Returns the values of a specified column in an array. yii

Handling Errors

Using Error Handler Customizing Error Display Yii includes a built-in error handler which makes error handling a much more pleasant experience than before. In particular, the Yii error handler does the following to improve error handling: All non-fatal PHP errors (e.g. warnings, notices) are converted into catchable exceptions. Exceptions and fatal PHP errors are displayed with detailed call stack information and source code lines in debug mode. Supports using a dedicated controller action to

grid\SerialColumn renderDataCellContent()

renderDataCellContent() protected method Renders the data cell content. protected string renderDataCellContent ( $model, $key, $index )$model mixed The data model $key mixed The key associated with the data model $index integer The zero-based index of the data model among the models array returned by yii\grid\GridView::$dataProvider. return string The rendering result

grid\SerialColumn $header

$header public property The header cell content. Note that it will not be HTML-encoded. The header cell content. Note that it will not be HTML-encoded. public string $header = '#'

grid\GridViewAsset $sourcePath

$sourcePath public property public $sourcePath = '@yii/assets'

grid\GridViewAsset $js

$js public property public $js = ['yii.gridView.js']

grid\GridViewAsset $depends

$depends public property public $depends = ['yii\web\YiiAsset']

grid\GridView run()

run() public method Runs the widget. public void run ( )

grid\GridView renderTableRow()

renderTableRow() public method Renders a table row with the given data model and key. public string renderTableRow ( $model, $key, $index )$model mixed The data model to be rendered $key mixed The key associated with the data model $index integer The zero-based index of the data model among the model array returned by $dataProvider. return string The rendering result

grid\GridView renderTableHeader()

renderTableHeader() public method Renders the table header. public string renderTableHeader ( )return string The rendering result.