Constructor; initializes Naos_View object
API Tags:
Redefined in descendants as:
void addBasePath(
string
$path, [string
$classPrefix = 'Zend_View']
)
|
|
Add an additional path to view resources
Parameters:
|
string |
$path: |
|
|
string |
$classPrefix: |
|
API Tags:
void addPluginPath(
$path
)
|
|
Parameters:
API Tags:
Naos_View addTemplatePath(
string|array
$path
)
|
|
Adds to the stack of view template paths in LIFO order.
Parameters:
|
string|array |
$path: |
The directory (-ies) to add. |
API Tags:
void assign(
string|array
$spec, [mixed
$value = null]
)
|
|
Assign variables to the view script via differing strategies.
Suggested implementation is to allow setting a specific key to the specified value, OR passing an array of key => value pairs to set en masse.
Parameters:
|
string|array |
$spec: |
The assignment strategy to use (key or array of key => value pairs) |
|
mixed |
$value: |
(Optional) If assigning a named variable, use this as the value. |
API Tags:
Clear all assigned variables
Clears all variables assigned to Zend_View either via assign() or property overloading (__get()/__set()).
API Tags:
Return the template engine object
API Tags:
Retrieve all view script paths
API Tags:
array getTemplatePaths(
)
|
|
Returns an array of all currently set template paths
API Tags:
void preRender(
string
$name
)
|
|
Precompiles a view script.
Parameters:
|
string |
$name: |
The script script name to process. |
API Tags:
string render(
string
$name
)
|
|
Processes a view script and returns the output.
Parameters:
|
string |
$name: |
optional, if you called prerender beforehand |
API Tags:
| Return: | The script output. |
| Access: | public |
void setBasePath(
string
$path, [string
$classPrefix = 'Zend_View']
)
|
|
Set a base path to all view resources
Parameters:
|
string |
$path: |
|
|
string |
$classPrefix: |
(not used) |
API Tags:
void setCompileHandler(
$handler
)
|
|
Sets a new compile handler
Parameters:
API Tags:
Naos_View setScriptPath(
string|array
$path
)
|
|
Set the path to find the view script used by render()
Parameters:
|
string|array |
$path: |
The directory (-ies) to set as the path. Note that the concrete view implentation may not necessarily support multiple directories. |
API Tags:
Naos_View setTemplatePath(
string|array
$path
)
|
|
Resets the stack of view script paths.
To clear all paths, use Zend_View::setScriptPath(null).
Parameters:
|
string|array |
$path: |
The directory (-ies) to set as the path. |
API Tags:
boolean __isset(
string
$key
)
|
|
Allows testing with empty() and isset() to work
Parameters:
API Tags:
void __set(
string
$key, mixed
$val
)
|
|
Assign a variable to the view
Parameters:
|
string |
$key: |
The variable name. |
|
mixed |
$val: |
The variable value. |
API Tags:
void __unset(
string
$key
)
|
|
Allows unset() on object properties to work
Parameters:
API Tags: