Sinpage.php 485 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\web\controller;
  3. use app\web\BaseController;
  4. use app\common\model\Sinpage as SinpageModel;
  5. class Sinpage extends BaseController
  6. {
  7. public function about()
  8. {
  9. $sinpage = SinpageModel::where(1)->find();
  10. return view('sinpage/about', [
  11. 'detail' => nl2br($sinpage->aboutus)
  12. ]);
  13. }
  14. public function apptreaty()
  15. {
  16. $sinpage = SinpageModel::where(1)->find();
  17. return view('sinpage/apptreaty', [
  18. 'detail' => nl2br($sinpage->apptreaty)
  19. ]);
  20. }
  21. }