Skip to content
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.

Creating a Widget

Jon Stockton edited this page Aug 30, 2014 · 4 revisions

Description of Component

A widget is meant to be a reusable design element embeddable in any template. Because of predicted problems of widgets needing to access PHP functionality, they were created as anonymous functions. I 1.0.0 these are bound to chage - being changed to pure HTML/parseable content, the dynamic nature will be taken care of through use of plugins which will be implemented as anonymous functions.

Example Widget

<?php
$this->simpleWidgetTest=function($configs=array())
{
        return "<div>Hello Widget!</div>";
}
?>