Maslosoft Miniview API
Class Widget
Widget
Methods summary
public
|
|
abstract public
|
|
abstract public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
|
|
public
object
|
|
public
|
#
setViewsPath( string $path )
Set views path. This is relative path for view resolving.
By default it's |
public
string
|
|
public
string
|
#
renderFile( string $file, mixed[] $data = null, boolean $return = false )
Render file with data provided. |
public static
string
|
|
public
string
|
#
__toString( )
This is equivalent of calling ::widget() with config from constructor. Could be used for convenient outputting of simple widgets. Example: echo new Flags([], $this); echo new Head(['title' => 'foot'], $this); |
API documentation generated by ApiGen