Gumbo_Template_Engine_Internal

Gumbo_Template_Engine
   |
   --Gumbo_Template_Engine_Internal

Internal Template Engine Class

The Internal Template Engine will include a template file into the parse method. The engine will include the file as if the contents were written inside the method. The Template file should contain HTML and PHP code intermixed. The use of <?php .. ?> tags is recommended. The Template file should output the results to the browser. The contents will be caught inside a buffer and the contents saved into the object.

Template File:

 ...
 template_variable; ?>
 ...

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Inherited Methods

Class Methods

public Gumbo_Template_Engine_Internal __construct ( [string $file] ) [line 55]

Constructor

Parameter(s):

  • (string) $file :: template file name

[ Top ]
protected void parse ( ) [line 68]

Parses the template file into an HTML string

  • postcondition:  isFormatted ()
  • precondition:  setFormatted (false)
  • precondition:  setOutput (null)
Overrides
Gumbo_Template_Engine::parse()

[ Top ]