english/libraries/joomla/application/component/view.php
/**
	* Adds to the search path for templates and resources.
	*
	* @param   string|array The directory or stream to search.
	*/
Adds to the search path for templates and resources.
@param   string|array The directory or stream to search.
Adds to the search path for templates and resources . @param string|array The directory or stream to search .
protected function _addPath($type, $path)
	{
		settype($path, 'array');
		foreach ($path as $dir)
		{
			$dir = trim($dir);
			if (substr($dir, -1) != DIRECTORY_SEPARATOR) {
				$dir .= DIRECTORY_SEPARATOR;
			}
			array_unshift($this->_path[$type], $dir);
		}
	}
protected function _addPath ( $ type , $ path ) { settype ( $ path , 'array' ) ; foreach ( $ path as $ dir ) { $ dir = trim ( $ dir ) ; if ( substr ( $ dir , - 1 ) != DIRECTORY_SEPARATOR ) { $ dir .= DIRECTORY_SEPARATOR ; } array_unshift ( $ this -> _path [ $ type ] , $ dir ) ; } }
Adds to the search path for templates and resources.
Adds to the search path for templates and resources .
// just force to array // loop through the path directories // no surrounding spaces allowed! // add trailing separators as needed // directory // Add to the top of the search dirs