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

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

        $this->data['page']->title = 'Browse Logs';

        $oAsset = Factory::service('Asset');
        $oAsset->library('MUSTACHE');
        $oAsset->load('nails.admin.logs.site.min.js', 'NAILS');
        $oAsset->inline('logsSite = new NAILS_Admin_Logs_Site();', 'JS');

        Helper::loadView('site/index');
    }
protected function siteIndex()
    {
        if (!userHasPermission('admin:admin:logs:site:browse')) {
            unauthorised();
        }

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

        $this->data['page']->title = 'Browse Logs';

        $oAsset = Factory::service('Asset');
        $oAsset->library('MUSTACHE');
        $oAsset->load('nails.admin.logs.site.min.js', 'NAILS');
        $oAsset->inline('logsSite = new NAILS_Admin_Logs_Site();', 'JS');

        Helper::loadView('site/index');
    }
protected function siteIndex ( ) { if ( ! userHasPermission ( 'admin:admin:logs:site:browse' ) ) { unauthorised ( ) ; } // -------------------------------------------------------------------------- $ this -> data [ 'page' ] -> title = 'Browse Logs' ; $ oAsset = Factory :: service ( 'Asset' ) ; $ oAsset -> library ( 'MUSTACHE' ) ; $ oAsset -> load ( 'nails.admin.logs.site.min.js' , 'NAILS' ) ; $ oAsset -> inline ( 'logsSite = new NAILS_Admin_Logs_Site();' , 'JS' ) ; Helper :: loadView ( 'site/index' ) ; }
Browse site log files
@return void
Browse site log files