class Attire (View source)

Attire Library.

Templating with this class is done by layering the standard CI view system. The basic idea is that for every single CI view there are individual CSS, Javascript and View files that correlate to it and this structure is conected with the Twig Engine.

Properties

protected Loader $loader
protected Environment $environment
protected Theme $theme
protected Views $views

Methods

__construct(array $options = [])

Class constructor.

string
render(string|array $views = null, array $params = [])

Render a template.

Details

__construct(array $options = [])

Class constructor.

Parameters

array $options Library params

string render(string|array $views = null, array $params = [])

Render a template.

Parameters

string|array $views View or a set of views with parameters passed to the template
array $params Set of parameters passed to the views

Return Value

string the output as string