Maslosoft Miniview API
Class MiniView
MiniRender Based on Yii CWidget
- Maslosoft\MiniView\MiniView implements Maslosoft\MiniView\Interfaces\ViewRendererInterface, Maslosoft\MiniView\Interfaces\OwnerAwareInterface, Maslosoft\MiniView\Interfaces\RendererAwareInterface uses Maslosoft\MiniView\Traits\OwnerAwareTrait, Maslosoft\MiniView\Traits\RendererAwareTrait
Namespace: Maslosoft\MiniView
Author: Piotr Maselkowski
Author: Qiang Xue qiang.xue@gmail.com
Located at MiniView.php
Author: Piotr Maselkowski
Author: Qiang Xue qiang.xue@gmail.com
Located at MiniView.php
Methods summary
public
|
#
__construct( object $owner, string $path = null )
Create MiniView instance. If path is not set, it will be based on location of owner class. |
public
string
|
|
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
|
Methods inherited from Maslosoft\MiniView\Interfaces\OwnerAwareInterface
Methods inherited from Maslosoft\MiniView\Interfaces\RendererAwareInterface
Methods used from Maslosoft\MiniView\Traits\OwnerAwareTrait
Methods used from Maslosoft\MiniView\Traits\RendererAwareTrait
Properties summary
public
array
|
$renderers
|
#
[
'latte' => LatteRenderer::class,
'php' => PhpRenderer::class,
'twig' => TwigRenderer::class
]
|
API documentation generated by ApiGen