Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -8,11 +8,12 @@ class Site
|
||||
|
||||
$class = '\controls\\';
|
||||
|
||||
$results = explode( '_', \S::get( 'module' ) );
|
||||
$module = \S::get( 'module' ) ?? '';
|
||||
$results = explode( '_', $module );
|
||||
if ( is_array( $results ) ) foreach ( $results as $row )
|
||||
$class .= ucfirst( $row );
|
||||
|
||||
$action = \S::get( 'action' );
|
||||
$action = \S::get( 'action' ) ?? '';
|
||||
|
||||
$tpl = new \Tpl;
|
||||
$tpl -> content = \controls\Site::route();
|
||||
|
||||
Reference in New Issue
Block a user