Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CButtonColumnEx: removed templateExpression property. Now template …
…property can be php expression * CButtonColumnEx: added readme.md and readme_ru.md * CImageHandler: added readme.md and readme_ru.md * Common: corrected copyright * Common: added empty readme
- Loading branch information
Showing
16 changed files
with
809 additions
and
19 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
protected/extensions/yiicomp/behaviors/DateTimeBehavior/CDateTimeBehavior.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
protected/extensions/yiicomp/behaviors/TreeComments/CTreeCommentsControllerBehavior.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
protected/extensions/yiicomp/behaviors/TreeComments/CTreeCommentsModelBehavior.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 4 additions & 8 deletions
12
protected/extensions/yiicomp/components/ButtonColumnEx/CButtonColumnEx.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
protected/extensions/yiicomp/components/ButtonColumnEx/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
CButtonColumnEx | ||
=============== | ||
|
||
CButtonColumnEx - extended CButtonColumn, in which template and button options | ||
can be php expressions. | ||
|
||
Installation | ||
------------ | ||
|
||
1. Copy ButtonColumnEx directory to Yii `components` directory | ||
|
||
2. Add import path | ||
|
||
~~~php | ||
'import'=>array( | ||
|
||
... | ||
|
||
'application.components.ButtonColumnEx.CButtonColumnEx', | ||
|
||
... | ||
|
||
) | ||
~~~ | ||
|
||
3. Use component in CGridView columns configuration | ||
|
||
~~~php | ||
'columns'=>array( | ||
|
||
... | ||
|
||
array( | ||
'class' => 'CButtonColumnEx', | ||
'template' => '"{view}" . ($data->isCancelable() ? " / {cancel}" : "")', | ||
'buttons' => array( | ||
'cancel' => array( | ||
|
||
... | ||
|
||
'options' => array( | ||
'data-title'=>'$data->title', | ||
), | ||
|
||
... | ||
|
||
), | ||
), | ||
), | ||
|
||
... | ||
|
||
), | ||
~~~ |
54 changes: 54 additions & 0 deletions
54
protected/extensions/yiicomp/components/ButtonColumnEx/readme_ru.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
CButtonColumnEx | ||
=============== | ||
|
||
CButtonColumnEx - потомок CButtonColumn, в котором свойство template и свойства options | ||
кнопок могут быть php-выражениями. | ||
|
||
Installation | ||
------------ | ||
|
||
1. Скопируйте папку ButtonColumnEx в паку `components` | ||
|
||
2. Добавте путь в импорт | ||
|
||
~~~php | ||
'import'=>array( | ||
|
||
... | ||
|
||
'application.components.ButtonColumnEx.CButtonColumnEx', | ||
|
||
... | ||
|
||
) | ||
~~~ | ||
|
||
3. Используйте компонент в конфигурации CGridView | ||
|
||
~~~php | ||
'columns'=>array( | ||
|
||
... | ||
|
||
array( | ||
'class' => 'CButtonColumnEx', | ||
'template' => '"{view}" . ($data->isCancelable() ? " / {cancel}" : "")', | ||
'buttons' => array( | ||
'cancel' => array( | ||
|
||
... | ||
|
||
'options' => array( | ||
'data-title'=>'$data->title', | ||
), | ||
|
||
... | ||
|
||
), | ||
), | ||
), | ||
|
||
... | ||
|
||
), | ||
~~~ |
4 changes: 2 additions & 2 deletions
4
protected/extensions/yiicomp/components/ImageHandler/CImageHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.