__construct()
__destruct()
append_output()
build_footer()
build_header()
flush_headers()
load_view()
output_string()
redirect_303()
render()
set_base()
set_body_class()
set_body_id()
set_css_group()
set_css_tag()
set_foot_js_group()
set_head_js_group()
set_head_tag()
set_header()
set_message()
set_meta()
set_output()
set_title()
_headers()
_link_tag()
_meta()
script_tag()
$base
$body_class
$body_id
$buffer
$css
$foot_js
$head_js
$head_tags
$headers
$meta
$title
Class for building pages
All methods are chainable, with the exception of the constructor, build_header(), build_footer(), and _headers() methods.
package | miniMVC |
---|---|
subpackage | System |
__construct() : void
__destruct() : void
append_output(string $string)
string
flush_headers()
load_view(string $file, array $data, bool $return) : mixed
string
array
bool
mixed
output_string(string $string)
Similar to render(), this is a shortcut to output a string in the body of the page.
string
redirect_303(string $url)
Shortcut function for 303 redirect
string
render(string $view, array $data)
Shortcut function for building a page
string
array
set_foot_js_group(string $group, bool $debug) : \miniMVC\Page
set_head_js_group(string $group, bool $debug) : \miniMVC\Page
set_header(string $key, string $val)
string
string
set_output(string $string)
string
_headers(bool $html5) : \miniMVC\Page
Also sets page mime type, based on if sent as html or xhtml, and what the target browser supports
bool
_link_tag(array $params) : string
array
string
script_tag(string $js, bool $domain) : string
Helper function for making script tags
string
bool
string
$base : string
$body_class : string
$body_id : string
$buffer : string
$css : string
$foot_js : string
$head_js : string
$headers : array
$title : string