Justin Kouwenhoven wrote on Tuesday 28th of June 2011:Hello, Is there a way to create global php functions that are accessible in views? Thanks.
class Helper {
public static function method($var){
return $var;
}
}
<?php \helper::method('hello!');?>
It looks like you're new here. If you want to get involved, click one of these buttons!