Mecha CMS

Helper functions.

state

Short function for State::set() and State::get().

2.2.0State

state(...$lot);

Example:

// Set `foo` state
state('foo', 1);

// Get states as array
$states = state();
// Get `foo` state
$state = state('foo');