/** * Render the login form for this authentication type. * * @param string $element * @param array $params */ public function renderForm($element = 'form', $params = array()) { $this->controller->requireAsset('javascript', 'backstretch'); $form_element = $this->mapAuthenticationTypeFilePath($element . '.php'); if (!$form_element->exists()) { $form_element = $this->mapAuthenticationTypeFilePath('form.php'); } ob_start(); if (method_exists($this->controller, $element)) { call_user_func_array(array($this->controller, $element), $params); } else { $this->controller->view(); } extract(array_merge($params, $this->controller->getSets())); require $form_element->file; $out = ob_get_contents(); ob_end_clean(); echo $out; }
public function requireAsset() { return parent::requireAsset(); }