diff --git a/lib/Doctrine/Pager/Layout.php b/lib/Doctrine/Pager/Layout.php index 93f1bdc21..d93bb76c1 100644 --- a/lib/Doctrine/Pager/Layout.php +++ b/lib/Doctrine/Pager/Layout.php @@ -350,6 +350,14 @@ class Doctrine_Pager_Layout echo $str; } + /** + * simply calls display, and returns the output. + */ + public function __toString() + { + return $this->display(array(), true); + } + /** * _parseTemplate