moved functions to helpers file.
This commit is contained in:
@@ -78,4 +78,4 @@ spl_autoload_register(array('Laravel\\Autoloader', 'load'));
|
||||
* Define a few global convenience functions to make our lives as
|
||||
* Laravel PHP developers a little more easy and enjoyable.
|
||||
*/
|
||||
require 'functions'.EXT;
|
||||
require SYS_PATH.'helpers'.EXT;
|
||||
@@ -1,27 +0,0 @@
|
||||
<?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