Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Fixed bug where yield wasn't inserting view contents properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Jul 12, 2010
1 parent 832fcd2 commit ec6e351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions application/libraries/Template.php
Expand Up @@ -318,10 +318,9 @@ public function yield($bypass=false)
return '{yield}';
} else
{
$this->_render_view($this->current_view, $this->cache_view);
return $this->_render_view($this->current_view, $this->cache_view);
}

$this->_mark('Template_Yield_end');
}

//---------------------------------------------------------------
Expand Down Expand Up @@ -724,8 +723,7 @@ private function _render_view($view_name='', $cache_me=false)
$this->write_cache($content);
}

echo $content;
return true;
return $content;
}

//---------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions speed_tests.txt
Expand Up @@ -16,6 +16,4 @@ Removed language files 109 459 20
(Autoload test) 111 471 18




NOTE: All tests performed on an Intel iMac (2Ghz Core Duo) with 3GB ram, running under MAMP. Zend Optimizer is off. Used Apache Bench with the command: ab -n 50 -c 10 http://ocular.local/. Each test was run 5 times consecutively and the results were averaged. The only view being displayed was the welcome page. Each Batch of tests was run on a different day, but a new baseline was run each time to give a relative score. Average speed reduction was calculated based on the xcache results.

0 comments on commit ec6e351

Please sign in to comment.