I'm using a new way to using my classes that don't really need to be constructed, but I'm not sure wether this is a good way to do it or wether I should just construct the class.
The way I'm using the class now is:
$content->setContent(Register::render());
The class looks like this:
class Register
{
public function render()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
return Register::register();
}
return Register::registerForm();
}
private function register()
{
}
private function registerForm()
{
$registerForm = '';
return $registerForm;
}
}
Thanks in advance, Jelle Peters.