写一个html页面 如下
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <a href="">11111</a> </body> </html>
控制器代码如下
<?php namespace appadmincontroller; use appadmincommonBase; class Tijiao extends Base { public function index(){ return $this->fetch('tijiao'); } }
这样可以把页面渲染出来