Permalink
Browse files

Change raw variable access to getRaw() to match symfony and ZF View 2…

….0 proposed syntax.
  • Loading branch information...
1 parent e23420d commit b792321ce0fc5984832d07ad0c62937e68d4ba6b @saltybeagle saltybeagle committed Dec 9, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Templates/Savant/ObjectProxy.php
  2. +1 −1 tests/escape/raw.tpl.php
@@ -94,7 +94,7 @@ protected function filterVar($var)
*
* @return mixed
*/
- function __raw($var)
+ function getRaw($var)
{
return $this->object->$var;
}
View
@@ -1,3 +1,3 @@
<?php
-echo $context->__raw('var1');
+echo $context->getRaw('var1');
?>

0 comments on commit b792321

Please sign in to comment.