init: 项目初始代码
This commit is contained in:
37
app/index/controller/Contact.php
Normal file
37
app/index/controller/Contact.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use think\facade\Lang;
|
||||
use think\facade\View;
|
||||
|
||||
/**
|
||||
* 联系我们
|
||||
*/
|
||||
class Contact extends Base
|
||||
{
|
||||
public function initialize()
|
||||
{
|
||||
parent::initialize();
|
||||
$this->model = new \app\index\model\About();
|
||||
}
|
||||
|
||||
/**
|
||||
* 显示资源列表
|
||||
*
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$inputData = $this->request->param();
|
||||
$resource = [];
|
||||
// $resource['banner'] = $this->model->getAboutBanner($this->languageId,'关于我们页面-banner');
|
||||
// $resource['banner_mobile'] = $this->model->getAboutBanner($this->languageId,'关于我们页面-手机-banner');
|
||||
// 增加标签显示
|
||||
$metaTitle = $this->model->getMetaTitle($this->languageId,'contact');
|
||||
View::assign('meta',$metaTitle);
|
||||
View::assign('resource',$resource);
|
||||
return View::fetch(Lang::getLangSet().DIRECTORY_SEPARATOR.'contact/contact');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user