Class cmsWidgets

From Snapp CMS Developer Documentation

Jump to: navigation, search

Usage in CMS

Example

$cms->loadWidget('Widget',array('name'=>'value');


Class cmsWidget

Available Functions

load(widget:string,cfg:array)

Load and runs a widget and returns the output

Parameters

  • widget : string (required) Name of the Widget
  • cfg : array (required) Configuration parameters to be passed to the widget
process(content:string)

Process a piece of content searching for any widgets and replaces them with the output from that widget

Parameters

  • content : string (required)
remove(content:string)

Removes any widget code from a piece of content

Parameters

  • sql : string (required)
Personal tools
Core Components
Standalone Installs