| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- /**
- * 关于我们等页面 控制器
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2019/9/29
- * Time: 14:11
- */
- namespace app\home\controller;
- use think\Request;
- class About extends Home
- {
- private $temple_us_en = '<article>
- <p>Loyo mobile game platform provides players with free mobile game downloads, mobile game
- rankings
- and a large number of free mobile game packages! Loyo also provides fresh and fun mobile
- game
- information, massive mobile games, mobile games, mobile games and so on.</p>
- <p> Loyo is founded by game professionals of 5-10 years of experience in the game industry. It
- has a
- team of mobile game planning, mobile game development and mobile game operations. Every
- member
- of Loyo has a deep-love and understanding in the game industry. Loyo is one of the few
- emerging
- game companies in China that has game development, game operations and guild management.
- Since
- its establishment, Loyo has rapidly deployed the mobile game industry with its solid
- strength
- foundation, and has reached a deep strategic partnership with industry giants such as Baidu
- Games, 360 Games and Lenovo Games.</p>
- </article>';
- /**
- * 初始化操作
- */
- protected function _initialize()
- {
- parent::_initialize();
- }
- public function _empty()
- {
- $action = Request::instance()->action();
-
- $info = $this->getAboutData($action);
- $this->assign('info',$info);
- return $this->fetch('about/index');
-
- }
- /**
- * 关于 的页面加载
- */
- private function getAboutData($action) {
-
- $info = model('Aboutus')->where('name',$action)->find();
-
- if (empty($info)) $this->error('暂无数据');
- return $info;
- }
- /**
- * 服务协议
- */
- public function agreement(){
- return $this->fetch();
- }
- }
|