Skip to content

Commit

Permalink
Add __toString to the template helper
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Aug 30, 2010
1 parent b171b96 commit 05df0c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Templating/Helper/MenuHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public function getName()
return $this->name;
}

public function __toString()
{
return $this->render();
}

/**
* Method deferring
*
Expand Down

0 comments on commit 05df0c4

Please sign in to comment.