Class cmsWidgets
From Snapp CMS Developer Documentation
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
|
| process(content:string) |
|---|
|
Process a piece of content searching for any widgets and replaces them with the output from that widget Parameters
|
| remove(content:string) |
|---|
|
Removes any widget code from a piece of content Parameters
|
