Download the PHP package antonyz89/yii2-templates without Composer
On this page you can find all versions of the php package antonyz89/yii2-templates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download antonyz89/yii2-templates
More information about antonyz89/yii2-templates
Files in antonyz89/yii2-templates
Package yii2-templates
Short Description minor changes in model/crud templates
License BSD-3-Clause
Informations about the package yii2-templates
yii2-templates
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
environments/dev/common/config/main
and run php init
again
Easy Pjax with _search.php
Kartik GridView ONLY
CRUD generated by Gii with any template already do it, just add YiiTemplateAsset
to complete
Usage:
1 - Just add YiiTemplateAsset
on YOUR_MODULE/assets/AppAsset
2 - Now, just enable pjax
on GridView
3 - Add data-ajax => true
on _search's form
DONE!
Just type on _search's fields and GridView will reload
Pjax only from form's submit
To use Pjax only from form's submit, just add 'pjax-only-on-submit' => true
on ActiveForm::begin from _search.php
ActiveQuery
Alias
Use @alias.
on query to replace it with ::tableName
or alias
.
Disable GROUP BY
set $query->groupBy(false)
to disable any GROUP BY
on query
All versions of yii2-templates with dependencies
yiisoft/yii2 Version ^2.0.5
yii2mod/yii2-helpers Version *
yiisoft/yii2-gii Version *
symfony/polyfill-php80 Version *