src/Module/View.php
private function data($view) {


		$data['var'] = $this->module->get('var');

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

			foreach((array) $view['with'] as $name => $value) {

				$data['var'][$name] = $value;
			}
		}

		$data['file'] = $this->getPath($view, $this->module->get('module'));


		return $data;
	}
private function data($view) {


		$data['var'] = $this->module->get('var');

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

			foreach((array) $view['with'] as $name => $value) {

				$data['var'][$name] = $value;
			}
		}

		$data['file'] = $this->getPath($view, $this->module->get('module'));


		return $data;
	}
private function data ( $ view ) { $ data [ 'var' ] = $ this -> module -> get ( 'var' ) ; if ( isset ( $ view [ 'with' ] ) ) { foreach ( ( array ) $ view [ 'with' ] as $ name => $ value ) { $ data [ 'var' ] [ $ name ] = $ value ; } } $ data [ 'file' ] = $ this -> getPath ( $ view , $ this -> module -> get ( 'module' ) ) ; return $ data ; }
Prepare the data
path for the requested view

@param array $view
@param array $data
Prepare the data path for the requested view