81898
请问control应该怎么扩展?
回帖数 5
阅读数 3747
发表时间 2013-01-22 17:20:30
我在模块my中增加一个扩展功能,放在my/ext/control目录中,control文件为helloworld.php,代码如下:
<?php
include '../../control.php';
class helloworldMy extends my
{
public function helloworld($account = '')
{
$this->display();
}
}
访问页面my-helloworld.html时却在日志文件中收到错误,说my模块中找不到helloworld方法,除非把这个方法直接写到my模块的control.php中才行。
ERROR: the module my has no helloworld method in I:\xampp\zentao\framework\router.class.php on line 1101, ..........
2013-01-22 17:23:46 潘超 最后编辑
5个回复
2013-01-23 07:49:59 王春生 回帖
5个回复
网址已经转移了:http://devel.easycorp.cn/book/extension.html
2015-05-25 10:21:56 王春生 回帖
联系我们
联系人
金娟/高级客户经理
电话(微信)
18562856230
QQ号码
1826606239
联系邮箱
jinjuan@chandao.com

相关帖子
于磊 | 最后回帖 2017-07-25 18:03 石洋洋
信邦 | 最后回帖 2019-10-25 10:59 信邦
摇一会儿 | 最后回帖 2024-05-20 08:31 王林
涛 | 最后回帖 2016-07-18 11:08 石洋洋
自信的长颈鹿 | 最后回帖 2025-01-07 09:07 孔令茂
crazy | 最后回帖 2019-08-09 17:48 禅道-李锡碧



精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


