public static function register($key, $url, $method = "POST") { if (!isset(self::$forms)) { self::$forms = (object) array(); } if (FormerView::$root == "") { Former::templatesPath(dirname(__FILE__) . "/tpl/"); } return self::$forms->{$key} = new FormerForm($url, $method, $key); }