Je ne peux pas en obtenir
heloo
heloo 2018-01-29 18:15:49
0
2
1311

Site Web : http://localhost/thinkphp/public/index/Be/demo1/name/think

———————————————————————— —— ——

namespace appindexcontroller;

class Be extends thinkController
{

protected $beforeActionList = [
                                                                                                                                                                             jusqu'à               out                      'before2'= & gt; ['only' = & gt; 'beFore3' = & GT; ['Except' = & GT; 'Demo3, DEMO1'],
]; Protected $ sitename

// Écrivez une pré-méthode ici
protected function before1()
{
$this->siteName =$this->request->param('name');
}

fonction protégée avant2()
{
$this->siteName = 'Baidu Chinese Network 2';
}

  fonction protégée avant3()
                                                { Return $ this- & gt; sitename
}

public function demo2 () {
Return $ this-& g; t ; nom du site ; tournez 'ss3' ;

heloo
heloo

répondre à tous(1)
lge

Où souhaitez-vous obtenir la méthode ?

  • répondre url_param_type' => 0, veuillez le modifier
    heloo auteur 2018-01-30 09:45:00
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!