\Yii::$app->setModule('yii2images', [
'class' => 'rico\yii2images\Module',
//be sure, that permissions ok
//if you cant avoid permission errors you have to create "images" folder in web root manually and set 777 permissions
'imagesStorePath' => 'upload/store', //path to origin images
'imagesCachePath' => 'upload/cache', //path to resized copies
'graphicsLibrary' => 'GD', //but really its better to use 'Imagick'
'placeHolderPath' => '@webroot/upload/store/no-photo.png', // if you want to get placeholder when image not exists, string will be processed by Yii::getAlias
]);
\Yii::$app->setModule('yii2images', [
'class' => 'rico\yii2images\Module',
//be sure, that permissions ok
//if you cant avoid permission errors you have to create "images" folder in web root manually and set 777 permissions
'imagesStorePath' => 'upload/store', //path to origin images
'imagesCachePath' => 'upload/cache', //path to resized copies
'graphicsLibrary' => 'GD', //but really its better to use 'Imagick'
'placeHolderPath' => '@webroot/upload/store/no-photo.png', // if you want to get placeholder when image not exists, string will be processed by Yii::getAlias
]);
[
'class' => 'yii\web\GroupUrlRule',
'routePrefix' => 'profile',
'rules' => [
'<username>' => 'view',
'/profile/edit' => 'update',
],
],
// Эквивалентно
'profile/<username>' => 'profile/view'
'profile/profile/edit' => 'profile/update'
Мне нужны разные варианты сложения чисел