想重写project control中的create方法,直接在创建了ext/control/create.php,里面很多方法无法使用,连$this->post_qc都无法使用。
21:36:19 Uncaught Error: Using $this when not in object context in D:\xampp\zentao\module\project\ext\control\create.php:5
Stack trace:
#0 D:\xampp\zentao\framework\base\helper.class.php(195): include()
#1 D:\xampp\zentao\framework\base\router.class.php(1645): baseHelper::import('D:\\xampp\\zentao...')
#2 D:\xampp\zentao\www\index.php(72): baseRouter->loadModule()
#3 {main}
thrown in D:\xampp\zentao\module\project\ext\control\create.php on line 5 when visiting project-create
王春生2022-05-16 08:40:19
请仔细看我们的扩展文档。
元曦 2022-04-02 18:21:30
如果我再user模块下的ext文件夹下面有多个扩展类,我其中一个扩展类引入另外一个扩展类的方法,总是提示我Fatal error: Cannot declare class user, because the name is already in use in F:\phpstudy_pro\WWW\cczq\cczq_pms\module\user\control.php on line 949
18:15:40 Cannot declare class user, because the name is already in use in F:\phpstudy_pro\WWW\cczq\cczq_pms\module\user\control.php on line 949 when visiting user-logoutex
但是实际上我并没有实例化,不知道怎么回事,求大佬帮助
执行到control.class.php->fetch()的ob_get_contents()。 输出为空
call_user_func_array() expects parameter 1 to be a valid callback,class 'myproject' does not have a method 'tips'
新扩展了control,权限也维护好了,但还是不能使用
08:32:18 ERROR: the module task has no batchrelationshiptask method in /usr/share/nginx/zentaopms/framework/base/router.class.php on line 1658, last called by /usr/share/nginx/zentaopms/www/index.php on line 72 through function loadModule.
in /usr/share/nginx/zentaopms/framework/base/router.class.php on line 2234 when visiting /index.php?m=task&f=batchRelationshipTask&projectID=102&taskID=825
详细的内容请阅读新的二次开发文档:
https://devel.easycorp.cn/book/extension-new/intro-52.html
扩展的文件里面需要写一个继承于control或者model的类,然后扩展相应的同名方法。根据您的建议,我们这周会在文档中对demo的代码进行更清楚的说明。
21:36:19 Uncaught Error: Using $this when not in object context in D:\xampp\zentao\module\project\ext\control\create.php:5
Stack trace:
#0 D:\xampp\zentao\framework\base\helper.class.php(195): include()
#1 D:\xampp\zentao\framework\base\router.class.php(1645): baseHelper::import('D:\\xampp\\zentao...')
#2 D:\xampp\zentao\www\index.php(72): baseRouter->loadModule()
#3 {main}
thrown in D:\xampp\zentao\module\project\ext\control\create.php on line 5 when visiting project-create
18:15:40 Cannot declare class user, because the name is already in use in F:\phpstudy_pro\WWW\cczq\cczq_pms\module\user\control.php on line 949 when visiting user-logoutex
但是实际上我并没有实例化,不知道怎么回事,求大佬帮助
要改成 class myblock extends block
创建迭代后的弹出框异常。
call_user_func_array() expects parameter 1 to be a valid callback,class 'myproject' does not have a method 'tips'
报表组件应该是在zui框架里面的。
08:32:18 ERROR: the module task has no batchrelationshiptask method in /usr/share/nginx/zentaopms/framework/base/router.class.php on line 1658, last called by /usr/share/nginx/zentaopms/www/index.php on line 72 through function loadModule.
in /usr/share/nginx/zentaopms/framework/base/router.class.php on line 2234 when visiting /index.php?m=task&f=batchRelationshipTask&projectID=102&taskID=825