Provides the bridge between the CloudBase Engine and Plugins.
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.
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}