src/Module/View.php
private function getPath($view, $module) {


		if(isset($module)) {

			if(isset($view['from'])) {

				return realpath(dirname($module['path']) . '/' . $view['from'] . '/Views/' . $view['name'] . '.php');

			} else {

				return realpath($module['path'] . '/Views/' . $view['name'] . '.php');
			}
		}
	}
private function getPath($view, $module) {


		if(isset($module)) {

			if(isset($view['from'])) {

				return realpath(dirname($module['path']) . '/' . $view['from'] . '/Views/' . $view['name'] . '.php');

			} else {

				return realpath($module['path'] . '/Views/' . $view['name'] . '.php');
			}
		}
	}
private function getPath ( $ view , $ module ) { if ( isset ( $ module ) ) { if ( isset ( $ view [ 'from' ] ) ) { return realpath ( dirname ( $ module [ 'path' ] ) . '/' . $ view [ 'from' ] . '/Views/' . $ view [ 'name' ] . '.php' ) ; } else { return realpath ( $ module [ 'path' ] . '/Views/' . $ view [ 'name' ] . '.php' ) ; } } }
Get file path for the requested view name

@param array $view
@param array $mod
@return string
Get file path for the requested view name