2017 © Pedro Peláez
 

library nette-favorite

Favorite component for Nette Framework

image

geniv/nette-favorite

Favorite component for Nette Framework

  • Thursday, April 26, 2018
  • by geniv
  • Repository
  • 2 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Favorite

Installation

$ composer require geniv/nette-favorite

or, (*1)

"geniv/nette-favorite": ">=1.0.0"

require:, (*2)

"php": ">=7.0.0",
"nette/nette": ">=2.4.0",
"geniv/nette-general-form": ">=1.0.0"

Include in application

neon configure services:, (*3)

services:
    - Favorite

presenter usage:, (*4)

protected function createComponentFavorite(Favorite $favorite): Favorite 
{
    //$otherComponent->addComponent($favorite, 'favorite');

    // $favorite->setTemplatePath(__DIR__ . '/templates/favorite.latte');
    $favorite->setSource($this->favoriteSource);
    $favorite->onSetFavorite[] = function (int $id) {
        $this->setFavorite($id);
    };
}

check status:, (*5)

$favorite->isFavorite($id);

latte usage:, (*6)

{control favorite $item['id']}

The Versions

26/04 2018

dev-master

9999999-dev

Favorite component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette favorite geniv

26/04 2018

v1.0.0

1.0.0.0

Favorite component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette favorite geniv

26/04 2018

dev-develop

dev-develop

Favorite component for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

nette favorite geniv