Slimore
  • Namespace
  • Class

Namespaces

  • None
  • Slimore
    • Cache
      • Exception
    • Captcha
    • Database
    • Debug
    • Http
    • Image
    • Log
    • Middleware
    • Mvc
    • Pagination
    • Upload

Classes

  • Application
  • Controller
  • Model
  • View

Exceptions

  • Exception

Class View

Class View

Slim\View
Extended by Slimore\Mvc\View
Namespace: Slimore\Mvc
Package: Slimore\Mvc
Author: Pandao
Located at Slimore/Mvc/View.php

Methods summary

public
# setCompileDirectory( )

Set/Create template compile directory

Set/Create template compile directory

public
# setCompileFile( string $filename )

Set template compile file path

Set template compile file path

Parameters

$filename
public static
# getProperties( array $array )
public mixed
# render( string $template, array $data = null )

Template render

Template render

Parameters

$template
$data

Returns

mixed
public static string
# mkdir( string $dir )

Create template compile directory

Create template compile directory

Parameters

$dir

Returns

string
protected string
# read( string $filename )

Read template file

Read template file

Parameters

$filename

Returns

string
protected
# write( string $filename, string $content )

Write template compile file

Write template compile file

Parameters

$filename
$content
public static string
# includeFile( string $file )

Parse & require included template file

Parse & require included template file

Parameters

$file

Returns

string
public static string
# parser( string $tpl )

Template parser

Template parser

Parameters

$tpl

Returns

string
public static
# addGlobals( array $array )

Insert global variables

Insert global variables

Parameters

$array

Properties summary

public string $compileFileSuffix
# '.php'
public boolean $compileFileNameMd5
# true
public string $compileDirectoryName
# '.compiles'
public string $cacheDirectoryName
# '.caches'
protected string $templateName
#
protected string $templateFile
#
protected string $compilePath
#
public boolean $compileCached
# true
protected string $templateCompileFile
#
protected static array $globals

Global vars for insert view

Global vars for insert view

# []
protected static array $properties
# []
Slimore API documentation generated by ApiGen