Home > Backend Development > PHP Tutorial > cakephp 生成链接异常

cakephp 生成链接异常

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:10:21
Original
924 people have browsed it

cakephp 生成链接错误!
echo $Html->link('List All Tasks', array('action'=>'index')); ?>

错误信息: Call to a member function link() on a non-object
有高手可以解答吗?


------解决方案--------------------
控制器中应该是少public $helpers = array('Html');句吧!

Related labels:
Statement of this Website
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
Latest Issues
How to create an array within an array?
From 1970-01-01 08:00:00
0
0
0
php array
From 1970-01-01 08:00:00
0
0
0
Array to array
From 1970-01-01 08:00:00
0
0
0
php array rotation
From 1970-01-01 08:00:00
0
0
0
array
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template