# depicter/trunk/app/src/Controllers/Admin/EditorController.php

Depicter — Popup &amp; Slider Builder, version trunk. 32 lines.

- Page: https://pluginprobe.com/plugins/depicter/trunk/code/app/src/Controllers/Admin/EditorController.php
- Raw: https://pluginprobe.com/plugins/depicter/trunk/raw/app/src/Controllers/Admin/EditorController.php
- Modified: 2022-06-01T06:26:20+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/depicter/trunk/code/app/src/Controllers/Admin/EditorController.php#L10-L20`.

```php
<?php
namespace Depicter\Controllers\Admin;

use WPEmerge\Requests\Request;
use WPEmerge\View\ViewInterface;

class EditorController {

	/**
	 * Handle the index page.
	 *
	 * @param Request        $request
	 * @param string         $view     the view that WordPress was trying to load
	 * @return ViewInterface
	 */
	public function open( Request $request, $view ) {
		return \Depicter::view( 'admin/editor/open/content.php' )->with([]);
	}

	/**
	 * Handle the index page.
	 *
	 * @param Request        $request
	 * @param string         $view     the view that WordPress was trying to load
	 * @return ViewInterface
	 */
	public function preview( Request $request, $view ) {
		return \Depicter::view( 'admin/editor/preview.php' )->with([]);
	}

}

```
