slim-extensions / widgets
This package is abandoned and no longer maintained.
No replacement package was suggested.
Support widgets for Slim Framework + Plates
dev-master / 1.0.x-dev
2014-04-28 22:29 UTC
Requires
- php: >=5.3.0
- league/plates: 2.*
- slim/slim: 2.*
This package is auto-updated.
Last update: 2024-03-12 21:13:17 UTC
README
Support widgets for Slim Framework + Plates (Plates is a native PHP template system)
Installation
Widgets is available via Composer:
{ "require": { "slim-extensions/widgets": "dev-master" } }
Example widget class
namespace App\Widget; class Test extends \Slim\Widgets\Widget implements \App\Plates\Extension\WidgetInterface { public function response() { $this->templatePath = APPPATH.'views'; $response = __CLASS__.'::'.__FUNCTION__; return $this->render('widgets/test', array('content' => $response)); } }
License
The MIT License (MIT). Please see License File for more information.