我正在将cakephp版本从2.6.7升级到3.3.4。 以下代码正确地工作以引用主页: p>
<?php echo Router :: url('/',true); ?>
code> pre>
但这在cakephp 3.3.4中无效,它显示以下错误消息: p>
错误:未找到类'路由器'
code> pre>
我错过了什么? 提前致谢。 p>
div>
I am upgrading my cakephp version from 2.6.7 to 3.3.4. The following code was properly working to refer the home url:
<?php echo Router::url('/', true); ?>
But this not working in cakephp 3.3.4 and it shows the following error message:
Error: Class 'Router' not found
Which I missed? Thanks in advance.
我正在将cakephp版本从2.6.7升级到3.3.4。 以下代码正确地工作以引用主页: p>
&lt;?php echo Router :: url('/',true); ?&gt;
code> pre>
但这在cakephp 3.3.4中无效,它显示以下错误消息: p>
错误:未找到类'路由器'
code> pre>
我错过了什么? 提前致谢。 p>
div>