Alexander Makarov
59a52d8876
Fixes #4556 : Gii was incorrectly generating labels
10 years ago
Alexander Makarov
d9a23975a5
Relaxed access level for `yii\gii\generators\model\Generator`
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Alexander Makarov
a38ba3ccbf
Fixes #4526 : fixed error caused by substr_compare length parameter doesn't accept null in PHP 5.4
10 years ago
Carsten Brandt
7736853837
property code style extensions
10 years ago
Alexander Makarov
1c414caace
Improved checks where substr_compare is used, replaced more substr + comapre cases with substr_compare
10 years ago
Kai Mindermann
ca752a6408
Fixes #4410 : Fixed Gii to preserve database column order in generated _form.php
10 years ago
Alexander Makarov
07f01bcf2b
Used substr_compare instead of substr when we don't care about result
10 years ago
Carsten Brandt
96c313d71f
gii: fixed wrong composer.json template
...
reverts 45e4973ac8
10 years ago
Bohdan Shulha
90594138f7
Fixes PHPDoc
10 years ago
Alexander Makarov
492337de2d
else if → elseif
10 years ago
Budi Irawan
45e4973ac8
fix json format in gii/generators/extension/default
10 years ago
Alexander Makarov
a73a2d3fdd
Revert "Gii `*Search` model generator fix"
10 years ago
Alexander Makarov
c8299697d0
Correct fix for #4060
10 years ago
Alexander Makarov
a03d87feb0
Fixes #4060
10 years ago
Alexander Kochetov
73fad8eb75
Gii `*Search` model generator fix
10 years ago
Alexander Makarov
e2a6acaf6b
Fixes #4005 : added phpdoc to search model Gii template
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Qiang Xue
6461817667
Fixes #2314 : Gii model generator does not generate correct relation type in some special case
10 years ago
Dmitry Chernikov
c9f79a2cb0
Gii codestyle fixes #2
10 years ago
Dmitry Chernikov
27a9bc759e
Gii codestyle fixes
10 years ago
Carsten Brandt
d8c5595458
refactored gii enum dropdown generator
...
PR #3676
10 years ago
Carsten Brandt
a643bde5d5
improved gii input filter, fixes #3689
10 years ago
Joel Small
25fa2f2df9
Formatting changes to new enum field
10 years ago
Joel Small
e636174992
Added ability to generate dropdown from Enum field
...
Alternatively, if statement could be: if(substr($column->dbType, 0, 4) === 'enum'), however expected implemented option to be more robust across other database formats.
Created after followup on this issue: https://github.com/yiisoft/yii/issues/292#issuecomment-44780779
10 years ago
Carsten Brandt
b7e493fca0
Tabs to spaces to be consistent
...
```
vendor/bin/indent --spaces -r framework/
vendor/bin/indent --tabs -r . --pattern=*.json
vendor/bin/indent --spaces -r . --pattern=*.md
vendor/bin/indent --spaces -r . --pattern=yii.*.js
vendor/bin/indent --spaces -r . --pattern=*.css
```
11 years ago
Qiang Xue
58967f13a2
guide WIP [skip ci]
11 years ago
Qiang Xue
cd162d9b9b
added missing hint [skip ci]
11 years ago
tsvetann
f8fefb009f
Update Generator.php
...
To comply with the docs RE namespace usage:
https://github.com/yiisoft/yii2/blob/master/docs/guide/extend-creating-extensions.md
11 years ago
johonunu
c63edd3181
Reformating code. Removed \t signs, using spaces. Edited Changelog.
11 years ago
johonunu
6f9aee90ea
Search model not required anymore in crud generator
11 years ago
suralc
1ad5c4c3fe
Only valid php classes should pass validation
11 years ago
suralc
14e4e836e2
Fixed regex-escaping in crudgenerator
11 years ago
suralc
4230f7664d
Fix #3265
...
Adding a new additional validation rule in the gii-crud generator enforcing the expected format.
11 years ago
Qiang Xue
3e3e443544
Refactored the fix for #3222 .
11 years ago
horizons2
b68f5b617f
removed unused code
...
removed unused code $patterns
11 years ago
horizons2
8ff55d1a28
correct typo
...
useTablePefix => useTablePrefix
11 years ago
horizons2
1d9e6b6f8b
use tableprefix on gii model generator
...
use tableprefix on gii model generator
11 years ago
Sorokin Victor
d8652a52ee
Update AutoloadExample.php
...
typo fix
11 years ago
Carsten Brandt
fe14f0c5e3
fixed all the PHPdoc in extensions
11 years ago
Luciano Baraglia
24e0bfcfed
Gii missing space in crud update template [skip ci]
11 years ago
João José
831be93868
Typecast model id only if using mongodb AR class
11 years ago
João José
21dff54d6b
Typecast model id only if using mongodb AR class
11 years ago
João José
b1beae71f3
Fixed format
11 years ago
João José
de1df94552
Typecast model id only if using mongodb AR class
11 years ago
João José
377b01d2c1
Typecast model Id so that urls don't break when using MongoDB object Id's
11 years ago
Carsten Brandt
3bc70ac133
do not throw exception if db component is not set
...
without this the form does not allow choosing a different connection id
11 years ago
Carsten Brandt
cd4b3f7827
Gii model generator did not add correct db connection
...
if component id is different from 'db'
11 years ago
Alexander Makarov
75154d351d
Refactored AR find
11 years ago
Qiang Xue
02c3c37a00
Fixes #2986 .
11 years ago