www.gusucode.com > KPPW众包威客PHP开源建站系统 v3.0源码程序 > KPPW/app/Modules/Bre/Http/Controllers/AgreementController.php
<?php namespace App\Modules\Bre\Http\Controllers; use App\Http\Controllers\IndexController; use App\Modules\Manage\Model\AgreementModel; use Illuminate\Routing\Controller; class AgreementController extends IndexController { public function __construct() { parent::__construct(); $this->initTheme('main'); } public function index($codeName) { $agree = AgreementModel::where('code_name',$codeName)->first(); $data = array( 'agree' => $agree ); $this->theme->setTitle($agree['name']); return $this->theme->scope('bre.agree',$data)->render(); } }