示例#1
0
 public function renderFontsConfigurationForm()
 {
     $values = N2Fonts::loadSettings();
     $form = new N2Form($this->appType);
     $form->loadArray($values);
     $form->loadArray($values['plugins']->toArray());
     $form->loadXMLFile(N2Loader::getPath('models', 'system') . '/forms/fonts.xml');
     echo N2Html::openTag("form", array("id" => "nextend-config", "method" => "post", "action" => N2Request::getRequestUri()));
     $form->render('fonts');
     echo N2Html::closeTag("form");
 }
示例#2
0
 /**
  * @param int  $statusCode
  * @param bool $terminate
  */
 public function refresh($statusCode = 302, $terminate = true)
 {
     $this->redirect(N2Request::getRequestUri(), $statusCode, $terminate);
 }