\Template

CSZ CMS

An open source content management system

Copyright (c) 2016, Astian Foundation.

Astian Develop Public License (ADPL)

This Source Code Form is subject to the terms of the Astian Develop Public License, v. 1.0. If a copy of the APL was not distributed with this file, You can obtain one at http://astian.org/about-ADPL

Summary

Methods
Properties
Constants
set()
setJS()
setSub()
set_template()
loadSub()
loadFrontPlugin()
loadFrontViews()
$template_data
$data_sub
$use_template_file
$use_template
No constants found
No protected methods found
No protected properties found
N/A
load()
No private properties found
N/A

Properties

$template_data

$template_data : 

Type

$data_sub

$data_sub : 

Type

$use_template_file

$use_template_file : 

Type

$use_template

$use_template : 

Type

Methods

set()

set(string  $name, string  $value) 

set

Set variable for using in templates views file (main file)

Parameters

string $name

Variable name for use in main file

string $value

Value of variable

setJS()

setJS(string  $js_txt) 

setJS

Set More JS for using in templates views file (main file)

Parameters

string $js_txt

Value of variable

setSub()

setSub(string  $name, string  $value = '') 

setSub

Set variable for using in views file (views file)

Parameters

string $name

Variable name for use in view file

string $value

Value of variable

set_template()

set_template(string  $name, string  $file = 'main') 

set_template

Set template name

Parameters

string $name

Template name for use

string $file

Template file name Defualt is main

loadSub()

loadSub(string  $view = '', string  $othermainfile = '') 

loadSub

Load view with sub views

Parameters

string $view

View file for load

string $othermainfile

Other main view file path

loadFrontPlugin()

loadFrontPlugin(string  $view = '', string  $othermainfile = '') 

loadFrontPlugin

Load view with sub views for frontend plugin with templates detected.

Parameters

string $view

View file for load

string $othermainfile

Other main view file path

loadFrontViews()

loadFrontViews(string  $view = '', string  $othermainfile = '') 

loadFrontViews

Load view with sub views for frontend with templates detected.

Parameters

string $view

View file for load

string $othermainfile

Other main view file path

load()

load(  $view = '',   $view_data = array(),   $template = '',   $return = FALSE,   $othermainfile = '') 

Parameters

$view
$view_data
$template
$return
$othermainfile