forked from kevinowino869/mitrobill
getting ready for customizeable dashboard with widget
This commit is contained in:
18
system/widgets/template.md
Normal file
18
system/widgets/template.md
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```php
|
||||
class widget_name
|
||||
{
|
||||
|
||||
public static getWidget($data)
|
||||
{
|
||||
global $config, $ui;
|
||||
|
||||
return $ui->fetch('widget/template');
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user