news.php 444 B

12345678910111213141516
  1. <?php
  2. namespace WY\app\controller\agent;
  3. use WY\app\libs\Controller;
  4. if (!defined('WY_ROOT')) {
  5. exit;
  6. }
  7. class news extends CheckUser
  8. {
  9. public function view()
  10. {
  11. $id = isset($this->action[3]) ? intval($this->action[3]) : 0;
  12. $data = $this->model()->select()->from('arlist')->where(array('fields' => 'id=? and is_state=?', 'values' => array($id, '1')))->fetchRow();
  13. $this->put('viewArticle.php', $data);
  14. }
  15. }