# SatisPress

Class Controller

***

* Full name: `\Linchpin_SatisPress\Controller\SatisPress`
* Parent class: [`\Linchpin_SatisPress\Controller\Controller`](./Controller)

## Methods

### register_actions

Register our actions

```php
public register_actions(): void
```

***

## Inherited methods

### assign

Assigns variables for substitution in templates.

```php
public assign(string $variable, mixed $value): void
```

**Parameters:**

| Parameter   | Type       | Description           |
|-------------|------------|-----------------------|
| `$variable` | **string** | The variable's name.  |
| `$value`    | **mixed**  | The variable's value. |

***

### the_view

Echos the view/template

```php
public the_view(string $file, string $view_dir = ''): void
```

Useful for echoing any content and also look in a local theme directory first to override templates

**Parameters:**

| Parameter   | Type       | Description              |
|-------------|------------|--------------------------|
| `$file`     | **string** | File to get HTML string. |
| `$view_dir` | **string** | View directory.          |

***

### get_view

Returns the view.

```php
public get_view(string $file, string $view_dir = ''): string
```

Useful for shortcodes, or whenever the markup needs to be returned.

**Parameters:**

| Parameter   | Type       | Description              |
|-------------|------------|--------------------------|
| `$file`     | **string** | File to get HTML string. |
| `$view_dir` | **string** | View directory.          |

**Return Value:**

$html HTML output as string.

***

### init_assignments

Reset the variables.

```php
protected init_assignments(): void
```

***

### __construct

Controller constructor.

```php
public __construct(): mixed
```

***

### register_actions

Registers the default hooks and filters.

```php
public register_actions(): mixed
```

***
