protected function OnOutput() { $vars = array('title' => $this->articles['title'], 'content' => $this->articles['content'], 'isback' => $this->back, 'canUseSecretFunctions' => $this->m_users->Can('USE_SECRET_FUNCTIONS')); $this->content = $this->Template('views/v_new.php', $vars); parent::onOutput(); }
protected function OnOutput() { $vars_content = array('title' => $this->form_art['title'], 'content' => $this->form_art['content'], 'canUseSecretFunctions' => $this->m_users->Can('USE_SECRET_FUNCTIONS')); $this->content = $this->Template('views/v_edit.php', $vars_content); parent::onOutput(); }