Channel.php 322 B

123456789101112131415161718
  1. <?php
  2. namespace Atom\Service\Article;
  3. use Dever;
  4. /**
  5. * 栏目类
  6. */
  7. class Channel
  8. {
  9. public function get()
  10. {
  11. $title = Dever::input('title');
  12. if (!$title) {
  13. Dever::alert('错误的标题');
  14. }
  15. $param['option_title'] = $title;
  16. return Dever::db('atom/channel')->all($param);
  17. }
  18. }