| Cts_View_Renderer | |
| Author | Jaybill McCarthy |
| License | http://communit.as/docs/license |
| See Also | Zend_View_Interface |
| Variables | |
| $_smarty | Smarty object. |
| Constructors | |
| __construct | |
| Instance Methods | |
| getEngine | Return the template engine object. |
| getScriptPaths | Retrieve the current template directory. |
| setBasePath | Alias for setScriptPath. |
| addBasePath | Alias for setScriptPath. |
| __set | Assign a variable to the template. |
| __get | Retrieve an assigned variable. |
| __isset | Allows testing with empty() and isset() to work. |
| __unset | Allows unset() on object properties to work. |
| assign | Assign variables to the template. |
| clearVars | Clears all variables assigned to Zend_View either via {@link assign()} or property overloading ({@link __get()}/{@link __set()}). |
| render | Processes a template and returns the output. |
| display | Display the template. |
public function assign( $spec, $value = null )
Assign variables to the template. Allows setting a specific key to the specified value, OR passing an array of key => value pairs to set en masse.
| spec | The assignment strategy to use (key or array of key => value pairs) |
| value (optional) | If assigning a named variable, use this as the value. |
void
Smarty object.
public $_smarty
public function __construct( $tmplPath = null, $extraParams = array() )
Return the template engine object.
public function getEngine()
Retrieve the current template directory.
public function getScriptPaths()
Alias for setScriptPath.
public function setBasePath( $path, $prefix = 'Zend_View' )
Alias for setScriptPath.
public function addBasePath( $path, $prefix = 'Zend_View' )
Assign a variable to the template.
public function __set( $key, $val )
Retrieve an assigned variable.
public function __get( $key )
Allows testing with empty() and isset() to work.
public function __isset( $key )
Allows unset() on object properties to work.
public function __unset( $key )
Assign variables to the template.
public function assign( $spec, $value = null )
Clears all variables assigned to Zend_View either via {@link assign()} or property overloading ({@link __get()}/{@link __set()}).
public function clearVars()
Processes a template and returns the output.
public function render( $name )
Display the template.
public function display( $name )