81898
请问control应该怎么扩展?
回帖数 5
阅读数 3672
发表时间 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 王春生 回帖
联系我们
联系人
高丽亚/高级客户经理
电话(微信)
17667930330
QQ号码
3645260865
联系邮箱
gaoliya@chandao.com

相关帖子
dasawe | 最后回帖 2018-05-04 14:06 dasawe
于磊 | 最后回帖 2017-07-25 18:03 石洋洋
杨金莲 | 最后回帖 2017-09-19 09:28 杨金莲
冯先生 | 最后回帖 2016-06-13 16:34 crazy
苏生 | 最后回帖 2017-05-26 09:15 石洋洋
廖荣玄 | 最后回帖 2020-09-24 16:00 石洋洋




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


