yii2-extension yii2-wishlist
Кнопка добавить в избранное plus extend model
samwolf1982/yii2-wishlist
Кнопка добавить в избранное plus extend model
- Friday, July 6, 2018
- by samwolf1982
- Repository
- 1 Watchers
- 0 Stars
- 5 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 4 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Moskoviya (russia) is a terrorist state
'modules' => [
'wishlist' => [
'class' => 'kriptograf\wishlist\Module',
'dbDateExpired' => 'CURDATE() + INTERVAL 7 DAY',
'cokieDateExpired' => time() + 86400 * 365,
],
//...
],
'components' => [
'wishlist' => [
'class' => 'kriptograf\wishlist\Wishlist'
],
//...
],
\Yii::$app->wishlist->getUserWishList($type=0)
```php
\Yii::$app->wishlist->getUserWishlistAmount()
``` fix
add if present class
```php
= WishlistButton::widget([
'model' => $model
]) ?>
```css
.hal-wishlist-button {
font-weight: 700;
}
.hal-wishlist-button:before {
content: "\f08a";
font: 400 15px/31px "FontAwesome";
color: white;
background: #929292;
width: 30px;
text-align: center;
display: inline-block;
height: 30px;
margin: 0 6px 0 0;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
border-radius: 50px;
}
.hal-wishlist-button:hover {
cursor: pointer;
}
.in-list:before {
background: #CC63B0l;
}