public function site()
    {
        if (!userHasPermission('admin:admin:logs:site:browse')) {
            unauthorised();
        }

        // --------------------------------------------------------------------------

        Factory::helper('string');
        $oUri    = Factory::service('Uri');
        $sMethod = $oUri->segment(5) ? $oUri->segment(5) : 'index';
        $sMethod = 'site' . underscoreToCamelcase(strtolower($sMethod), false);

        if (method_exists($this, $sMethod)) {
            $this->{$sMethod}();
        } else {
            show404('', true);
        }
    }
public function site()
    {
        if (!userHasPermission('admin:admin:logs:site:browse')) {
            unauthorised();
        }

        // --------------------------------------------------------------------------

        Factory::helper('string');
        $oUri    = Factory::service('Uri');
        $sMethod = $oUri->segment(5) ? $oUri->segment(5) : 'index';
        $sMethod = 'site' . underscoreToCamelcase(strtolower($sMethod), false);

        if (method_exists($this, $sMethod)) {
            $this->{$sMethod}();
        } else {
            show404('', true);
        }
    }
public function site ( ) { if ( ! userHasPermission ( 'admin:admin:logs:site:browse' ) ) { unauthorised ( ) ; } // -------------------------------------------------------------------------- Factory :: helper ( 'string' ) ; $ oUri = Factory :: service ( 'Uri' ) ; $ sMethod = $ oUri -> segment ( 5 ) ? $ oUri -> segment ( 5 ) : 'index' ; $ sMethod = 'site' . underscoreToCamelcase ( strtolower ( $ sMethod ) , false ) ; if ( method_exists ( $ this , $ sMethod ) ) { $ this -> { $ sMethod } ( ) ; } else { show404 ( '' , true ) ; } }
Route site log pages
@throws \Nails\Common\Exception\FactoryException
Route site log pages