MyHtmlHelperCakePHP的非法偏移串5.4
public function url($url = null, $full = false) {
if(empty($url['lang']) && isset($this->params['lang'])) {
$url['lang'] = $this->params['lang'];
}
return parent::url($url, $full);
}
AppHelper
public function url($url = null, $full = false) {
if (empty($url['lang'])) {
$url['lang'] = $this->params['lang'];
}
return parent::url($url, $full);
}
,當我跑。應用程序警告cakephp非法抵消lang ..... 我該如何解決這個錯誤