Download the PHP package bootiq/cms-api-vendor-nette without Composer
On this page you can find all versions of the php package bootiq/cms-api-vendor-nette. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bootiq/cms-api-vendor-nette
More information about bootiq/cms-api-vendor-nette
Files in bootiq/cms-api-vendor-nette
Package cms-api-vendor-nette
Short Description B!Q CMS api vendor - nette implementation
License Apache-2.0
Informations about the package cms-api-vendor-nette
BootIq - CMS API vendor for Nette
Installation
For installation of Boot!Q CMS API vendor for Nette, use composer
Configuration
Add Boot!Q CMS API vendor for Nette to your extensions:
Register adapter for communication by defining biq_cms_adapter to services configuration:
Finally define parameters for configuration (name are used above in adapter definition):
Usage
Inject PageControlFactory into your Presenter and create PageControl component. For example:
Now use PageControl component in your latte template:
Modification
Fallbacks
If nothing is rendered, callback onNotRendered($mixed) is triggered. If one of the block is not rendered, callback onBlockNotRendered(Block $block, \Exception $exception) is triggered. Example of usage of our callback.
Own BlockControl
If you want use your own BlockControl, simply create new Control which implements BootIq\CmsApiVendor\Nette\Control\Block\BlockControlInterface. Then register it to PageControl in createComponent method:
Logger
If you want log, what is going on in our PageControl simply set Logger to PageControl in createComponent method. Logger have to implement PSR-3 LoggerInterface. For example:
All versions of cms-api-vendor-nette with dependencies
bootiq/cms-api-vendor Version ^00.01
nette/di Version ^2.4
nette/utils Version ^2.4
nette/finder Version ^2.4
latte/latte Version ^2.4
nette/application Version ^2.4