AttachmentController.class.php 858 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * lionfish 商城系统
  4. *
  5. * ==========================================================================
  6. * @link http://www.liofis.com/
  7. * @copyright Copyright (c) 2015 liofis.com.
  8. * @license http://www.liofis.com/license.html License
  9. * ==========================================================================
  10. *
  11. * @author fish
  12. *
  13. */
  14. namespace Seller\Controller;
  15. class AttachmentController extends CommonController{
  16. protected function _initialize(){
  17. parent::_initialize();
  18. //'pinjie' => '拼团介绍',
  19. }
  20. public function index()
  21. {
  22. if (IS_POST) {
  23. $data = I('request.parameter');
  24. D('Seller/Config')->update($data);
  25. show_json(1, array('url' => $_SERVER['HTTP_REFERER']));
  26. }
  27. $data = D('Seller/Config')->get_all_config();
  28. $this->data = $data;
  29. $this->display();
  30. }
  31. }
  32. ?>