Skip to content

Commit

Permalink
Change raw variable access to getRaw() to match symfony and ZF View 2…
Browse files Browse the repository at this point in the history
….0 proposed syntax.
  • Loading branch information
saltybeagle committed Dec 9, 2009
1 parent e23420d commit b792321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Templates/Savant/ObjectProxy.php
Expand Up @@ -94,7 +94,7 @@ protected function filterVar($var)
* *
* @return mixed * @return mixed
*/ */
function __raw($var) function getRaw($var)
{ {
return $this->object->$var; return $this->object->$var;
} }
Expand Down
2 changes: 1 addition & 1 deletion tests/escape/raw.tpl.php
@@ -1,3 +1,3 @@
<?php <?php
echo $context->__raw('var1'); echo $context->getRaw('var1');
?> ?>

0 comments on commit b792321

Please sign in to comment.