moved functions to helpers file.

This commit is contained in:
Taylor Otwell
2011-11-10 22:10:18 -06:00
parent c67a010c5c
commit 0dc43490a6
2 changed files with 3 additions and 3 deletions

27
laravel/helpers.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
/**
* Convert HTML characters to entities.
*
* The encoding specified in the application configuration file will be used.
*
* @param string $value
* @return string
*/
function e($value)
{
return Laravel\HTML::entities($value);
}
/**
* Retrieve a language line.
*
* @param string $key
* @param array $replacements
* @param string $language
* @return string
*/
function __($key, $replacements = array(), $language = null)
{
return Laravel\Lang::line($key, $replacements, $language);
}