PHP Class Bluz\View\View

Author: Anton Shevchuk, ErgallM
Inheritance: implements Bluz\View\ViewInterface, implements JsonSerializable, use trait Bluz\Common\Container\Container, use trait Bluz\Common\Container\JsonSerialize, use trait Bluz\Common\Container\MagicAccess, use trait Bluz\Common\Options, use trait Bluz\Common\Helper
Afficher le fichier Open project: bluzphp/framework Class Usage Examples

Protected Properties

Свойство Type Description
$baseUrl base url
$partialPath paths to partial
$path path to template
$template template name

Méthodes publiques

Méthode Description
__construct ( ) Create view instance, initial default helper path
__sleep ( ) : string[] List of packed properties
__toString ( ) : string Render like string
addPartialPath ( string $path ) : View Add partial path for use inside partial and partialLoop helpers
setPath ( string $path ) : void
setTemplate ( string $file ) : void

Method Details

__construct() public méthode

Create view instance, initial default helper path
public __construct ( )

__sleep() public méthode

List of packed properties
public __sleep ( ) : string[]
Résultat string[]

__toString() public méthode

Render like string
public __toString ( ) : string
Résultat string

addPartialPath() public méthode

Add partial path for use inside partial and partialLoop helpers
public addPartialPath ( string $path ) : View
$path string
Résultat View

setPath() public méthode

public setPath ( string $path ) : void
$path string
Résultat void

setTemplate() public méthode

public setTemplate ( string $file ) : void
$file string
Résultat void

Property Details

$baseUrl protected_oe property

base url
protected $baseUrl

$partialPath protected_oe property

paths to partial
protected $partialPath

$path protected_oe property

path to template
protected $path

$template protected_oe property

template name
protected $template