3ev Core Wordpress library API
  • Namespace
  • Class

Namespaces

  • Tev
    • Application
      • Bootstrap
    • Author
      • Model
    • Contracts
    • Database
      • CustomTables
    • Field
      • Model
      • Util
    • Plugin
      • Action
      • Shortcode
    • Post
      • Model
      • Repository
    • Taxonomy
      • Model
      • Repository
    • Term
      • Model
      • Repository
    • Util
    • View
      • Exception
  • None

Classes

  • Renderer

Class Renderer

Simple buffer-based view renderer.

Will search for template files in the configured template dir first, and then fallback to the current theme directory.

Namespace: Tev\View
Located at Tev/View/Renderer.php

Methods summary

public
# __construct( string $templateDir )

Constructor.

Constructor.

Parameters

$templateDir
Template directory
public string
# render( string $filename, array $vars = array() )

Renders a template file.

Renders a template file.

Assigns all $var keys to $this->$key for us in template.

Parameters

$filename
Full-filename
$vars
View variables

Returns

string
Rendered view

Throws

Tev\View\Exception\NotFoundException
If view file not found
public mixed
# __get( string $name )

Magic getter, for getting view variables.

Magic getter, for getting view variables.

Parameters

$name
View variable name

Returns

mixed
View variable, or null if not set
3ev Core Wordpress library API API documentation generated by ApiGen