Overview

Namespaces

  • LucidFrame
    • Console
    • Core
    • File
  • None

Classes

  • App
  • Database
  • Form
  • Middleware
  • Pager
  • QueryBuilder
  • Router
  • SchemaManager
  • Seeder
  • Validation
  • View
  • Overview
  • Namespace
  • Class

Class View

Namespace: LucidFrame\Core
Located at classes/View.php
Methods summary
public
# __construct( )

View constructor.

View constructor.

public
# __set( string $name, mixed $value )

Setter

Setter

Parameters

$name
The property name
$value
The property value
public mixed
# __get( string $name )

Getter

Getter

Parameters

$name
The property name

Returns

mixed
public
# addData( string $key, mixed $value )

Add data into view

Add data into view

Parameters

$key
The variable name to be accessible in view
$value
The value of the variable
public
# addHeadStyle( string $file )

Add CSS file to be included in head section

Add CSS file to be included in head section

Parameters

$file

An absolute file path or file name only. The file name only will be prepended the folder name css/ and it will be looked in every sub-sites "css" folder

public
# addHeadScript( string $file )

Add JS file to be included in head section

Add JS file to be included in head section

Parameters

$file

An absolute file path or file name only. The file name only will be prepended the folder name js/ and it will be looked in every sub-sites "js" folder

public
# load( string $name = '' )

Display view

Display view

Parameters

$name
Optional view name to append to the file name such as view_{$name}.php
public false|string|
# block( string $name, array $data = array(), boolean $return = false )

Display block view

Display block view

Parameters

$name
Block view name to the file name with or without extension php
$data
The data injected to the view
$return
To return html or not

Returns

false|string|
public
# headStyle( )

Include CSS files in head section. Make sure calling this method in head

Include CSS files in head section. Make sure calling this method in head

public
# headScript( )

Include JS files in head section. Make sure calling this method in head

Include JS files in head section. Make sure calling this method in head

PHPLucidFrame 3.2 API documentation generated by ApiGen