Hello,
I have running on iTop version 3.1.0, with toolkit installed.
I've generated a custom extension in https://www.itophub.io/wiki/page?id=latest:customization:datamodel and trying to go step by step with these guides:
Add a field to the Server class (https://www.itophub.io/wiki/page?id=latest:customization:add-attribute-sample)
Creating a new class of CI: Monitor (https://www.itophub.io/wiki/page?id=latest:customization:add-class-sample)
When I go to http://itop/setup and trying to add my custom extension problem occurs (attached picture).
For add a filed to the Server class I have similliar issue (at line 6: class "Server" could not be found)
What could resolve this issue?
Thank you.
PS. I've tried to run toolkit also but it doesn't say any problems whatsoever
You'll need to add a line under the "dependencies" in the module PHP file.
Therefore, you need to find out first in what module "Server" is originally defined.
Then, make sure it looks something like this:
'dependencies' => array( 'original-module-name/3.1.0' )
Thank you very much. Issue solved!
Log in to post a comment.
Hello,
I have running on iTop version 3.1.0, with toolkit installed.
I've generated a custom extension in https://www.itophub.io/wiki/page?id=latest:customization:datamodel
and trying to go step by step with these guides:
Add a field to the Server class (https://www.itophub.io/wiki/page?id=latest:customization:add-attribute-sample)
Creating a new class of CI: Monitor (https://www.itophub.io/wiki/page?id=latest:customization:add-class-sample)
When I go to http://itop/setup and trying to add my custom extension problem occurs (attached picture).
For add a filed to the Server class I have similliar issue (at line 6: class "Server" could not be found)
What could resolve this issue?
Thank you.
PS. I've tried to run toolkit also but it doesn't say any problems whatsoever
Last edit: razsalgul1635 2023-07-19
You'll need to add a line under the "dependencies" in the module PHP file.
Therefore, you need to find out first in what module "Server" is originally defined.
Then, make sure it looks something like this:
Thank you very much. Issue solved!