No error is reported but the value cannot be obtained and can only be printed out. Learn
实.
实. 2018-03-26 18:11:39
0
3
1633

<?php

namespace app\index\controller;
use think\Controller;
class Test1 extends Controller
{
   public function index(){
       return 'shepi';
   }
   public function demo3()
   {
       return '学习'.$this->request->param('lesson');
   }
   public function demo4()
   {
       return '学习'.$this->request->get('lesson');
       //return '学习'.Request::instance()->param('lesson');
   }
}

实.
实.

初入职场,刚开始做这个还是感觉有些难以下手

reply all(3)
phpcn_u47087

tp5.com/index/test1/demo3/lesson/dddd The test is fine. Did you use the demo4 method?

路过

Did you pass the value?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template