Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Bug with 'require_once' file path
Re: Bug with 'require_once' file path [message #5419 is a reply to message #5418] Thu, 10 March 2016 11:05 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
I can immediately see that you are doing some things in a questionable way.

1) When using RDCsingleton:getInstance('table.class.inc') you do not need to require/include the class file beforehand as this is handled automatically in the getInstance method.

2) The ability to access classes in another subsystem should be handled by putting the path to that other subsystem in the htaccess file. Alternatively you can use 'subsystem/table.class.inc' in the call to getInstance() as this will automatically update include_path.

3) I do not understand why in the _cm_pre_getData method for that table you are reading data from a different table in a different subsystem. Your LIST1 task should go directly to the child table without having to go through the parent table.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: subsystem export does not cover user roles
Next Topic: CAN'T CREATE MULTI3 TRANSACTION
Goto Forum:
  


Current Time: Wed Dec 18 17:05:19 EST 2024

Total time taken to generate the page: 0.01135 seconds