__construct()
build_footer()
build_header()
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_message()
set_meta()
set_title()
_headers()
_link_tag()
_meta()
script_tag()
$base
$body_class
$body_id
$css
$foot_js
$head_js
$head_tags
$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
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) : \Page
_headers(bool $html5) : \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
$css : string
$foot_js : string
$head_js : string
$title : string