src/View/View.php
public function only(...$layouts){
		if( !in_array(app::$response->layout->_name, $layouts) ){
			(new Report('Runtime/CantBeUsedInThisLayout'))->stop();
		}
	}
public function only(...$layouts){
		if( !in_array(app::$response->layout->_name, $layouts) ){
			(new Report('Runtime/CantBeUsedInThisLayout'))->stop();
		}
	}
public function only ( ... $ layouts ) { if ( ! in_array ( app :: $ response -> layout -> _name , $ layouts ) ) { ( new Report ( 'Runtime/CantBeUsedInThisLayout' ) ) -> stop ( ) ; } }
Access to module through app.
Access to module through app .