Basicis - Core

Logo

As the name says, it is made to be basic and direct.

View the Project on GitHub basicis/core

Basicis\View\View

View Class

Methods

| Name | Description | |——|————-| |__construct|Function __construct| |getFunctions|Function getFunctions Get all defineds Twig functions| |getView|Fuction getView Get a string result os template with optional $data array| |hasFunction|Function hasFunction Check if has a Twig function named by $name argument| |setFilters|Function setFilters Setting filters functions for use into template

View::__construct

Description

public __construct (array $paths)

Function __construct

Parameters

Return Values

void


View::getFunctions

Description

public getFunctions (void)

Function getFunctions Get all defineds Twig functions

Parameters

This function has no parameters.

Return Values

array


View::getView

Description

public getView (string $name, array $data)

Fuction getView Get a string result os template with optional $data array

Parameters

Return Values

string|null


View::hasFunction

Description

public hasFunction (string $name)

Function hasFunction Check if has a Twig function named by $name argument

Parameters

Return Values

bool


View::setFilters

Description

public setFilters (array $filters)

Function setFilters Setting filters functions for use into template

Parameters

Return Values

\View