title: Zend Framework, run query without a view?
body: <p>I am currently building a small admin section for a website using Zend Framework, this is only my second time of using the framework so I am a little unsure on something things. for example are I have an archive option for news articles where the user will hopefully click a link and the article will be archived however I cannot work out how to get this to run without having a view?</p>
  
  <p>this is my controller</p>
  
  <pre><code>public function archiveNewsAction()
  {
  
      //die(var_dump($this-&gt;_request-&gt;getParam('news_id')));
      $oNews = new news();
      $this-&gt;_request-&gt;getParam('news_id');
      $oNews-&gt;archiveNewsArticle($news_id);
      //die(var_dump($oNews));
      $this-&gt;_redirect('/admin/list-all');
  }
  </code></pre>
  
  <p>and this is my model</p>
  
  <pre><code>public function archiveNewsArticle($news_id)
  {
      //die($news_id);
      $db = Zend_Registry::get('db');
      $sql = "UPDATE $this-&gt;_name SET live = '0' WHERE news_id = '$news_id' LIMIT 1";
      die($sql);
      $query = $db-&gt;query($sql);
      $row = $query-&gt;fetch();
  
      return $row;
  }
  </code></pre>
  
  <p>I would appreciate any help any one can give.</p>
  
  <p>Thanks</p>
  
  <p>Sico</p>