goldmorphin Posted May 6, 2018 Share Posted May 6, 2018 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. Link to comment Share on other sites More sharing options...
bfarber Posted May 7, 2018 Share Posted May 7, 2018 I'm not sure if I understand. You would create a hook on IPS\nexus\Subscription\Package like any other class in the software. Link to comment Share on other sites More sharing options...
goldmorphin Posted May 10, 2018 Author Share Posted May 10, 2018 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 Link to comment Share on other sites More sharing options...
Daniel F Posted May 10, 2018 Share Posted May 10, 2018 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 . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.