Class SmartyView

Description

SmartyView is the Wrapper class around Zend_View and provides entry point for Smarty related activities.

SmartyView just provide a wrapper object around Zend_View_Abstract class and support all the capability of calling Smarty functions, modifiers, templates and all available features provided by Smarty.

This class provides both facility to use it like Zend_View assign variables in Controller as specifies in Zend Documentation and use it in template file although you have the functionality in smarty template to get all variable assign through zend or application objects (request, session, global e.t.c).

You can also get Smarty engine from this class object by calling it method getEngine().

SmartyView forward request to target template file. It will map the template directory according to the Zend MVC view directory specification.

  • author: Saad Rashid (msrashid@etilizepak.com)
  • version: 1.0
  • see: index.php (Front Controller)
  • see: SmartyViewLoader
  • see: Zend_View_Abstract

Located in /models/SmartyView.php (line 29)

Zend_View_Abstract
   |
   --SmartyView
Variable Summary
mixed $_smarty
Method Summary
SmartyView __construct ([ $config = array()])
void assign (string $spec, [string $value = null])
void clearVars ()
Smarty getEngine ()
void _run ()
unknown __isset (unknown_type $key)
void __set (string $key, string $val)
void __unset (string $key)
Variables
mixed $_smarty (line 31)
  • access: protected
Methods
Constructor __construct (line 33)
  • access: public
SmartyView __construct ([ $config = array()])
  • $config
assign (line 112)

Assign key or value

  • access: public
void assign (string $spec, [string $value = null])
  • string $spec
  • string $value
clearVars (line 122)

Clear all smarty assgined variables

  • access: public
void clearVars ()
getEngine (line 65)

Get the Smarty Engine for smarty related activities.

  • return: obejct
  • access: public
Smarty getEngine ()
registerFunctions (line 144)

Register some php function as smarty modifiers to use in templates.

  • access: public
void registerFunctions ()
_run (line 130)

Call parent run method

  • access: protected
void _run ()
__isset (line 88)

Enter description here...

  • access: public
unknown __isset (unknown_type $key)
  • unknown_type $key
__set (line 77)

Sets the key value inside smarty assign variables those are used in templates where required.

  • access: public
void __set (string $key, string $val)
  • string $key
  • string $val
__unset (line 101)

Remove specified key from assigned variable

  • access: public
void __unset (string $key)
  • string $key

Documentation generated on Wed, 13 Feb 2008 01:57:42 +0500 by phpDocumentor 1.4.0a2