function __construct() { $name = getInput("name"); $label = getInput("label"); $title = getInput("title"); $body = getInput("body"); $page = new Custompage(); $page->name = $name; $page->label = $label; $page->title = $title; $page->body = $body; $page->save(); new SystemMessage("Your page has been created."); forward("admin/custom_pages"); }