factory()
factory(string $driver, array $params = array()) : \Ansel_Widget
Factory method for creating Ansel_Widgets
Parameters
string | $driver | The type of widget to create. |
array | $params | Any parameters the widget needs. |
Throws
- \Ansel_Exception
Returns
\Ansel_Widget —object