fix function namespacing.
This commit is contained in:
27
laravel/bootstrap/functions.php
Normal file
27
laravel/bootstrap/functions.php
Normal 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 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 Lang::line($key, $replacements, $language);
|
||||
}
|
||||
Reference in New Issue
Block a user