cloudbase / plugin-core
There is no license information available for the latest version (1.1.1) of this package.
The bridge between CloudBase plugins and the CloudBase engine.
1.1.1
2025-10-06 00:39 UTC
Requires
- latte/latte: ^3.0
- symfony/http-foundation: ^7.3
README
Provides the bridge between the CloudBase Engine and Plugins.
Base Controller
Plugin controllers should always extend CloudBase\PluginCore\Controller\CloudBaseController
.
Make use of the renderedLatteResponse
method to render templates from your plugin:
return $this->renderedLatteResponse('index.latte', []);
This will render the index.latte
template from your plugins views
directory. Feel free to exclude the .latte
extension,
it isn't required in order to find your template.
CloudBase Helper Class
Currently, can be used to retrieve the base views directory (from the cloudbase/engine
package). Useful when extending
layouts or importing default components:
{layout {CloudBase\PluginCore\CloudBase::getBaseViewsDirectory() . '/layout/cloudbase.layout.latte'}} {block content} ... {/block}