\Installer\ControllerStartupController

Controller for handling new QuickAppsCMS installations.

This controller starts the installation process for a new QuickAppsCMS setup.

Summary

Methods
Properties
Constants
beforeFilter()
index()
language()
requirements()
license()
database()
account()
finish()
$theme
$layout
$helpers
$viewClass
$components
$Users
No constants found
title()
description()
_getTester()
_step()
_prepareLayout()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$theme

$theme : string

{@inheritDoc}

Type

string

$layout

$layout : string

{@inheritDoc}

Type

string

$helpers

$helpers : string

{@inheritDoc}

Type

string

$viewClass

$viewClass : string

The name of the View class controllers sends output to.

Type

string

$components

$components : string

{@inheritDoc}

Type

string

$Users

$Users : \User\Model\Table\UsersTable

Type

\User\Model\Table\UsersTable

Methods

beforeFilter()

beforeFilter(\Cake\Event\Event $event) : void

{@inheritDoc}

Parameters

\Cake\Event\Event $event

The event that was triggered

index()

index() : void

Main action.

We redirect to first step of the installation process: language.

language()

language() : void

First step of the installation process.

User must select the language they want to use for the installation process.

requirements()

requirements() : void

Second step of the installation process.

We check server requirements here.

license()

license() : void

Third step of the installation process.

License agreement.

database()

database() : void

Fourth step of the installation process.

User must introduce database connection information.

account()

account() : void

Fifth step of the installation process.

Create a new administrator user account.

finish()

finish() : void

Last step of the installation process.

Here we say "thanks" and redirect to site's frontend or backend.

title()

title(string $titleForLayout) : void

Shortcut for Controller::set('title_for_layout', .

..)

Parameters

string $titleForLayout

Page's title

description()

description(string $descriptionForLayout) : void

Shortcut for Controller::set('description_for_layout', .

..)

Parameters

string $descriptionForLayout

Page's description

_step()

_step(null|string $check) : boolean

Check if the given step name was completed. Or marks current step as completed.

If $check is set to NULL, it marks current step (controller's action name) as completed. If $check is set to a string, it checks if that step was completed before.

This allows steps to control user navigation, so users can not pass to the next step without completing all previous steps.

Parameters

null|string $check

Name of the step to check, or false to mark as completed current step

Returns

boolean

_prepareLayout()

_prepareLayout() : void

Sets some view-variables used across all steps.