Jump to content

Hook in Subscription/Package.php


Recommended Posts

Posted

Hello guys!

Any ideas, how i can hook in applications/nexus/sources/Subscription/Package.php?
Is it even possible?


Yes, i know, that i can edit directly in file, but every update will return to default.

Posted
On 5/7/2018 at 6:40 PM, bfarber said:

I'm not sure if I understand. You would create a hook on IPS\nexus\Subscription\Package like any other class in the software.

But where this hook must be located in my application, that autoloader can find it? What the namespace i must use?

Quote
  • Framework classes
    Classname structure: \IPS\Namespace\Class
    Location on disk: system/Namespace/Class.php
     
  • Application classes
    Classname structure: \IPS\app\Namespace\Class (note that the application key is lowercase, but the parts after are PascalCase)
    Location on disk: applications/app/sources/Namespace/Class.php
     
  • Application extensions and modules
    Classname structure: \IPS\app\modules\front\module\controller (note all the parts are lowercase)
    Location on disk: applications/app/modules/front/module/controller.php

 

Posted
2 hours ago, goldmorphin said:

But where this hook must be located in my application, that autoloader can find it? What the namespace i must use?

 

The software will automatically create the file for you when you create the code hook in the developer center of your app .

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...