Class SmartyDispatcher

Description

SmartyDispatcher class is used resolve the path for template files those are need to be included in the current template file. it controls dynamic mapping of template directories and dispatch request request to appropriate template for rendering.

Note : If we need to include any other fragment template file inside an exisitng template then we need to use this class and provide the path of the including template file. The including file script is rendered and assign in the view variable for use in the in the template file where required. All fragment that are needed to be include in the target template file use the above class to dynamically map the target script path and forward to the actually when the required fragments are rendered in view variables.

Located in /models/SmartyDispatcher.php (line 22)


	
			
Method Summary
static SmartyDispatcher getInstance ( $scriptsRoot)
void dispatch ()
string dispatchToTemplatePath (strng $dispatchPath)
Methods
static method getInstance (line 34)

factory method to return the singleton instance

  • access: public
static SmartyDispatcher getInstance ( $scriptsRoot)
  • $scriptsRoot
dispatch (line 52)
  • access: public
void dispatch ()
dispatchToActionMappedPath (line 73)

Dispatch the path where target template file exist.

  • access: public
string dispatchToActionMappedPath ()
dispatchToTemplatePath (line 62)

Dispatch the script path to inlcuding template file dir.

  • access: public
string dispatchToTemplatePath (strng $dispatchPath)
  • strng $dispatchPath

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