Created a Singleton parent class and implemented some common Object method.

This commit is contained in:
Josh Sherman 2010-10-02 16:36:54 -04:00
parent 5b0c42bda3
commit d2966c7345
8 changed files with 204 additions and 68 deletions

View file

@ -61,12 +61,13 @@ class Display_PHP extends Display_Common
ob_start();
// Puts the class variables in local scope for the template
$form_class = (isset($this->config->pickles['form']) ? $this->config->pickles['form'] : 'Form');
$__config = $this->config;
$__module = $this->module_return;
$__css_class = $this->css_class;
$__js_file = $this->js_basename;
$form_class = (isset($this->config->pickles['form']) ? $this->config->pickles['form'] : 'Form');
$__form = new $form_class();
$__form = $form_class::getInstance();
// Loads the template
if ($this->parent_template != null)