元標(biāo)簽用于存儲關(guān)于HTML文檔的數(shù)據(jù),例如作者和文檔的描述。
最好的解決方案是在應(yīng)用程序中定義默認標(biāo)簽,并在視圖中覆蓋默認參數(shù)。我們可以在PHP中這樣做。
首先在配置文件中進行更改 ?
<?php return [ ‘addemailid’ =>’ [email protected]’, ‘descrip’=>’docdescription’ ];
登錄后復(fù)制
進行布局更改 −
<?php $this->registerMetaTag($app->params[‘ademailid’], ‘ademailid’); $this->registerMetaTag($app->params[‘descrip’],’ descrip’); ?>
登錄后復(fù)制
以上就是如何用HTML將“布局”中的默認元標(biāo)簽替換為“視圖”中的自定義元標(biāo)簽?的詳細內(nèi)容,更多請關(guān)注www.92cms.cn其它相關(guān)文章!