Api.php 592 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Page\Src;
  3. use Dever;
  4. class Api
  5. {
  6. /*
  7. public function test()
  8. {
  9. return Dever::load('page/lib/data')->get('focus', '焦点图', 5);
  10. }
  11. public function test_1()
  12. {
  13. return Dever::load('page/lib/data')->getPage(1);
  14. }*/
  15. # 获取页面下的数据
  16. public function page()
  17. {
  18. $path = Dever::input('path');
  19. return Dever::load('page/lib/data')->getPage($path);
  20. }
  21. # 获取模块下的数据
  22. public function module()
  23. {
  24. return Dever::load('page/lib/data')->get(Dever::input('key'), Dever::input('name'), Dever::input('num', 10));
  25. }
  26. }