instance_class
Differences
This shows you the differences between two versions of the page.
| instance_class [2019/10/21 05:54] – created sahl | instance_class [2020/02/12 21:30] (current) – sahl | ||
|---|---|---|---|
| Line 53: | Line 53: | ||
| $instance-> | $instance-> | ||
| </ | </ | ||
| + | |||
| + | ===== Logging into an instance ===== | ||
| + | |||
| + | There are two easy ways of logging into an instance. A static function or a normal function. | ||
| + | |||
| + | <code php> | ||
| + | Instance:: | ||
| + | |||
| + | $instance = new Instance(); | ||
| + | $instance-> | ||
| + | $instance-> | ||
| + | </ | ||
| + | |||
| + | The function will return false if the provided username or password is invalid. Otherwise it will redirect to the '' | ||
| + | |||
| + | ===== Multiserver environment ===== | ||
| + | |||
| + | It is possible to have a range of servers, with each server holding one or more instances. This is implemented through the [[Server class]]. | ||
| + | |||
| + | Each server should have the same copy of the source code. | ||
| + | |||
| + | When spawning a new instance using '' | ||
instance_class.1571637268.txt.gz · Last modified: 2019/10/21 05:54 by sahl