webchemistry / widgets
Widgets
2.0
2017-05-27 18:17 UTC
Requires
- php: >=7.1
- latte/latte: ^2.4 || ^3.0
- nette/application: ^2.4 || ^3.0
Requires (Dev)
- phpstan/phpstan: ^0.7
This package is auto-updated.
Last update: 2024-10-08 22:44:42 UTC
README
Installation
config.neon:
extensions: widgets: WebChemistry\Widgets\DI\WidgetsExtension
Registration
config.neon
widgets: firstWidget: FirstWidget secondWidget: # With multiplier multiplier: yes class: SecondWidget thirdWidget: @third # As service services: third: ThirdWidget
Using
Presenter:
class BasePresenter extends Nette\Application\UI\Presenter { use WebChemistry\Widgets\Traits\TPresenter; }
Template:
{widget firstWidget} {widget secondWidget-1} {widget secondWidget-2} {widget thirdWidget}