src/generators/crud/Generator.php
public function generateActiveSearchField($attribute)
    {
        $tableSchema = $this->getTableSchema();
        if ($tableSchema === false) {
            return "\$form->field(\$model, '$attribute')";
        }

        $column = $tableSchema->columns[$attribute];
        if ($column->phpType === 'boolean') {
            return "\$form->field(\$model, '$attribute')->checkbox()";
        }

        return "\$form->field(\$model, '$attribute')";
    }
public function generateActiveSearchField($attribute)
    {
        $tableSchema = $this->getTableSchema();
        if ($tableSchema === false) {
            return "\$form->field(\$model, '$attribute')";
        }

        $column = $tableSchema->columns[$attribute];
        if ($column->phpType === 'boolean') {
            return "\$form->field(\$model, '$attribute')->checkbox()";
        }

        return "\$form->field(\$model, '$attribute')";
    }
public function generateActiveSearchField ( $ attribute ) { $ tableSchema = $ this -> getTableSchema ( ) ; if ( $ tableSchema === false ) { return "\$form->field(\$model, '$attribute')" ; } $ column = $ tableSchema -> columns [ $ attribute ] ; if ( $ column -> phpType === 'boolean' ) { return "\$form->field(\$model, '$attribute')->checkbox()" ; } return "\$form->field(\$model, '$attribute')" ; }
Generates code for active search field
@param string $attribute
@return string
Generates code for active search field