adding a toString method to pager layout
This commit is contained in:
parent
d6ec2665ec
commit
f3e9fe66a8
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue