Page.php 344 B

12345678910111213141516171819
  1. <?php
  2. namespace Content\Lib;
  3. use Dever;
  4. class Page
  5. {
  6. # 更新数据
  7. public function link($id)
  8. {
  9. $info = Dever::db('content/page')->one($id);
  10. $url = Dever::url('page?key=' . $info['key'], 'main');
  11. $html = '<a href="'.$url.'" target="_blank">点此查看</a>';
  12. return $html;
  13. }
  14. }