Skip to content

DanielWinning/cloudbase-plugin-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudBase | Plugin Core

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}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages