diff options
| author | 2014-03-22 17:56:07 +0100 | |
|---|---|---|
| committer | 2014-03-22 17:56:07 +0100 | |
| commit | 5081ffaf39699398f83be97e47b72444e5bcd5d1 (patch) | |
| tree | cf07bc40c955510785198ed74bbc931ee209439b /lib/Minz/View.php | |
| parent | 69deb27f654a0d5d5e6fe77733d56a9c4fd29e03 (diff) | |
Minz: remove one layer of ob_ (experimental)
https://github.com/marienfressinaud/FreshRSS/issues/303#issuecomment-38351311
https://github.com/marienfressinaud/FreshRSS/issues/163
* Remove Minz_Response (not needed anymore)
* Move Minz_Request::reseted to Minz_Dispatcher::reset()
Diffstat (limited to 'lib/Minz/View.php')
| -rw-r--r-- | lib/Minz/View.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Minz/View.php b/lib/Minz/View.php index e170bd406..00d9a1a6d 100644 --- a/lib/Minz/View.php +++ b/lib/Minz/View.php @@ -103,6 +103,16 @@ class Minz_View { } /** + * Retourne renderHelper() dans une chaîne + * @param $helper l'élément à traîter + */ + public function helperToString($helper) { + ob_start(); + renderHelper($helper); + return ob_get_clean(); + } + + /** * Permet de choisir si on souhaite utiliser le layout * @param $use true si on souhaite utiliser le layout, false sinon */ |
