root/cake/libs/view/theme.php
/**
 * Return all possible paths to find view files in order
 *
 * @param string $plugin
 * @return array paths
 * @access private
 */
Return all possible paths to find view files in order
@param string $plugin
@return array paths
@access private
Return all possible paths to find view files in order @param string $plugin @return array paths @access private
function _paths($plugin = null, $cached = true) {
		$paths = parent::_paths($plugin, $cached);
		if (!empty($this->theme)) {
			$count = count($paths);
			for ($i = 0; $i < $count; $i++) {
				$themePaths[] = $paths[$i] . 'themed'. DS . $this->theme . DS;
			}
			$paths = array_merge($themePaths, $paths);
		}
		if (empty($this->__paths)) {
			$this->__paths = $paths;
		}
		return $paths;
	}
function _paths ( $ plugin = null , $ cached = true ) { $ paths = parent :: _paths ( $ plugin , $ cached ) ; if ( ! empty ( $ this -> theme ) ) { $ count = count ( $ paths ) ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ themePaths [ ] = $ paths [ $ i ] . 'themed' . DS . $ this -> theme . DS ; } $ paths = array_merge ( $ themePaths , $ paths ) ; } if ( empty ( $ this -> __paths ) ) { $ this -> __paths = $ paths ; } return $ paths ; }
Return all possible paths to find view files in order
 @param string $plugin
 @return array paths
 @access private
Return all possible paths to find view files in order @param string $plugin @return array paths @access private