Heim  >  Fragen und Antworten  >  Hauptteil

Es wird kein Fehler gemeldet, aber der Wert kann nicht abgerufen und nur ausgedruckt werden

<?php

namespace appindexcontroller;
use thinkController;
class Test1 erweitert Controller
{
   public function index(){
       return 'shepi';
   }
   public function demo3()
   {
       zurück '学习'.$this->request->param('lesson');
   }
   public function demo4()
   {
       return '学习'.$this->request->get('lesson') ;
       //return '学习'.Request::instance()->param('lesson');
   }
}

实.实.2373 Tage vor1579

Antworte allen(3)Ich werde antworten

  • 梦游天下

    梦游天下2018-04-15 17:26:21

    tp5.com/index/test1/demo3/lesson/dddd 测试的没问题啊,你是不是用的demo4方法?

    Antwort
    0
  • 实.

    实.2018-03-27 09:57:38

    传了值 啊  tp5.com/index/test1/demo3/lesson/dddd 

    Antwort
    0
  • 路过

    路过2018-03-27 08:26:51

    你传值了吗?

    Antwort
    0
  • StornierenAntwort