Home >Backend Development >PHP Tutorial >yii2 urlManager 'urlFormat'=>'path', 报错,没有urlFormat属性

yii2 urlManager 'urlFormat'=>'path', 报错,没有urlFormat属性

WBOY
WBOYOriginal
2016-06-06 20:27:121578browse

Unknown Property – yii\base\UnknownPropertyException

Setting unknown property: yii\web\UrlManager::urlFormat

回复内容:

Unknown Property – yii\base\UnknownPropertyException

Setting unknown property: yii\web\UrlManager::urlFormat

<code>enablePrettyUrl 
http://www.yiiframework.com/doc-2.0/yii-web-urlmanager.html</code>

配置文件中关于 URL Manager 的配置写错了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn