Menu

Creating new class/adding a field to class

2023-07-19
2023-07-19
  • razsalgul1635

    razsalgul1635 - 2023-07-19

    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:

    1. Add a field to the Server class (https://www.itophub.io/wiki/page?id=latest:customization:add-attribute-sample)

    2. 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
  • Jeffrey Bostoen

    Jeffrey Bostoen - 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:

    'dependencies' => array(
       'original-module-name/3.1.0'
       )
    
     
  • razsalgul1635

    razsalgul1635 - 2023-07-19

    Thank you very much. Issue solved!

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.