Changeset 1908

Show
Ignore:
Timestamp:
09/02/07 18:09:32 (6 years ago)
Author:
kop-labs
Message:

Added functions : lazy merge

Location:
website/lib/views
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • website/lib/views/Servlet.class.php

    r1904 r1908  
    2727    function _preProcess() 
    2828    { 
     29        ob_start(); 
    2930        $this->setContentType("text/html", "charset=utf-8"); 
    3031        if($_SERVER['REQUEST_METHOD'] == "GET"){ 
     
    4445     
    4546    function processRequest(){ 
    46         ob_start(); 
    47         $this->_preProcess(); 
     47        //$this->_preProcess(); 
    4848        $this->_postProcess(); 
    4949       ob_end_flush(); 
  • website/lib/views/StandardForm.class.php

    r1907 r1908  
    4747 
    4848 
    49          
     49        $this->loadTemplate("index"); 
     50        $this->_preProcess();  
    5051        foreach($this->fields as $key=>$value){ 
    5152            $this->tbs->MergeField($key, $value); 
     
    5657        //$this->tbs->MergeField("onload"); 
    5758     
    58         $this->loadTemplate("index"); 
     59 
    5960    } 
    6061