reketaka / yii2-helps
Набор полезных хелповых функций, виджетов и модулей
Installs: 463
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- 2amigos/yii2-transliterator-helper: *
- kartik-v/yii2-widget-select2: @dev
- kotchuprik/yii2-sortable-widgets: *
- npm-asset/bootstrap-notify: *
- unclead/yii2-multiple-input: *
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-httpclient: ^2.0
- dev-master
- 1.232
- 1.231
- 1.230
- 1.229
- 1.228
- 1.227
- 1.226
- 1.225
- 1.224
- 1.223
- 1.222
- 1.221
- 1.220
- 1.219
- 1.218
- 1.217
- 1.216
- 1.215
- 1.214
- 1.213
- 1.212
- 1.211
- 1.210
- 1.209
- 1.208
- 1.207
- 1.206
- 1.205
- 1.204
- 1.203
- 1.202
- 1.201
- 1.200
- 1.199
- 1.198
- 1.197
- 1.196
- 1.195
- 1.194
- 1.193
- 1.192
- 1.191
- 1.190
- 1.189
- 1.188
- 1.187
- 1.186
- 1.185
- 1.184
- 1.183
- 1.182
- 1.181
- 1.180
- 1.179
- 1.178
- 1.177
- 1.176
- 1.175
- 1.174
- 1.173
- 1.172
- 1.171
- 1.170
- 1.169
- 1.168
- 1.167
- 1.166
- 1.165
- 1.164
- 1.163
- 1.162
- 1.161
- 1.160
- 1.159
- 1.158
- 1.157
- 1.156
- 1.155
- 1.154
- 1.153
- 1.152
- 1.151
- 1.150
- 1.149
- 1.148
- 1.147
- 1.146
- 1.145
- 1.144
- 1.143
- 1.142
- 1.141
- 1.140
- 1.139
- 1.138
- 1.137
- 1.136
- 1.135
- 1.134
- 1.133
- 1.132
- 1.131
- 1.130
- 1.129
- 1.128
- 1.127
- 1.126
- 1.125
- 1.124
- 1.123
- 1.122
- 1.121
- 1.120
- 1.119
- 1.118
- 1.117
- 1.116
- 1.115
- 1.114
- 1.113
- 1.112
- 1.111
- 1.110
- 1.109
- 1.108
- 1.107
- 1.106
- 1.105
- 1.104
- 1.103
- 1.102
- 1.101
- 1.009
- 1.008
- 1.007
- 1.006
- 1.005
- 1.004
- 1.003
- 1.002
- 1.000
- dev-branch_18
- dev-list_of_payment_system_merge_master
This package is auto-updated.
Last update: 2025-02-16 14:10:38 UTC
README
Набор полезных хелповых функций, виджетов и модулей Нужно установить asset-packagist.org
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist reketaka/yii2-helps "*"
or add
"reketaka/yii2-helps": "*"
to the require section of your composer.json
file.
Usage
Установка контроллера миграций, задает CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB
если не указанны опции создания таблицы
'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'templateFile' => '@reketaka/helps/common/views/migration/migration.php', 'generatorTemplateFiles' => [ 'create_table'=>'@reketaka/helps/common/views/migration/createTableMigration.php' ] ]
Модель Regedit
console config.php
'controllerMap' => [
'regedit'=>[
'class'=>'reketaka\helps\common\commands\RegeditController'
]
],
config.php
'components' => [
'regedit'=>[
'class'=>'reketaka\helps\common\models\Regedit'
],
'db'=>[
'schemaMap' => [
'mysql'=>'reketaka\helps\common\models\db\mysql\Schema'
]
]
]
Использование
Yii::$app->regedit->get('//modules/myModule/someVar');
Yii::$app->regedit->remove('//modules/myModule/someVar');
Yii::$app->regedit->clearCache();
Yii::$app->regedit->getList('//modules/myModule/someVar');
Yii::$app->regedit->set('//modules/myModule/someVar', 'test');
Модуль обмена данными с 1c
Для установки модуля принятия данных с 1с модуль автоматически принимает сохраняет данные, возможно принятия данных в zip формате
Все принятые файлы храняться в $module->getProgressDirPath()
после их обраотки можете скопировать их в папку $module->getBackupDirPath()
Вызов в 1с
http://dev_price.sunrise22.ru/importOnec/import-onec/auto
'modules'=>[
'importOnec'=>[
'class'=>'reketaka\helps\modules\onec\Module',
'userName'=>'test';
'userPassword'=>'test';
'authKeyName'=>'AuthKey';
'authKeyVal'=>'pzshkmm0VzIZru65cB1Zsr6o47xZYqpR';
'maxFileSize'=>102400;
'enableZip'=>true;
'saveDirPath'=>'@backend/runtime/temp';
'authKeyCallback' => function(){
if (!($cookie = Yii::$app->request->headers->get('cookie', false))) {
throw new Exception('Not find authKey in Cookie');
}
list($n, $authKey) = explode('=', $cookie);
return $authKey;
}
]
]