# disk-usage-insights/1.7/src/Frontend/Controller/IndexController.php

Disk Usage Insights, version 1.7. 18 lines.

- Page: https://pluginprobe.com/plugins/disk-usage-insights/1.7/code/src/Frontend/Controller/IndexController.php
- Raw: https://pluginprobe.com/plugins/disk-usage-insights/1.7/raw/src/Frontend/Controller/IndexController.php
- Modified: 2024-12-19T11:33:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/disk-usage-insights/1.7/code/src/Frontend/Controller/IndexController.php#L10-L20`.

```php
<?php
namespace Mgleis\DiskUsageInsights\Frontend\Controller;

use Mgleis\DiskUsageInsights\Plugin;
use Mgleis\DiskUsageInsights\WpHelper;

class IndexController {

    public function execute() {
        $WP_PLUGIN_URL = WpHelper::getPluginUrl();
        $WP_NONCE = wp_create_nonce(Plugin::NONCE);
        $WP_ADMIN_AJAX_URL = admin_url('admin-ajax.php');

        include_once __DIR__ . '/../../../views/index.php';
    }

}

```
