libraries/legacy/view/legacy.php
/**
	 * Load a helper file
	 *
	 * @param   string  $hlp  The name of the helper source file automatically searches the helper paths and compiles as needed.
	 *
	 * @return  void
	 *
	 * @since   12.2
	 */
Load a helper file
@param   string  $hlp  The name of the helper source file automatically searches the helper paths and compiles as needed.

@return  void


Load a helper file @param string $hlp The name of the helper source file automatically searches the helper paths and compiles as needed . @return void
public function loadHelper($hlp = null)
	{
		$file = preg_replace('/[^A-Z0-9_\.-]/i', '', $hlp);
		jimport('joomla.filesystem.path');
		$helper = JPath::find($this->_path['helper'], $this->_createFileName('helper', array('name' => $file)));
		if ($helper != false)
		{
			include_once $helper;
		}
	}
public function loadHelper ( $ hlp = null ) { $ file = preg_replace ( '/[^A-Z0-9_\.-]/i' , '' , $ hlp ) ; jimport ( 'joomla.filesystem.path' ) ; $ helper = JPath :: find ( $ this -> _path [ 'helper' ] , $ this -> _createFileName ( 'helper' , array ( 'name' => $ file ) ) ) ; if ( $ helper != false ) { include_once $ helper ; } }
Load a helper file
 @param   string  $hlp  The name of the helper source file automatically searches the helper paths and compiles as needed.
Load a helper file @param string $hlp The name of the helper source file automatically searches the helper paths and compiles as needed .
// Clean the file name // Load the template script // Include the requested template filename in the local scope