adding a toString method to pager layout
This commit is contained in:
parent
d6ec2665ec
commit
f3e9fe66a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user