• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
load library from different module in HVMC

#1
[eluser]scibuff[/eluser]
Hello, I have the following structure

Code:
/application
/application/modules/common/libraries/vo/vo_abstract
/application/modules/test/libraries/vo/my_vo

and I want my_vo to extends vo_abstract

what is the proper way to "include" vo_abstract inside the my_vo code. I definitely don't wanna do something like
Code:
include_once( APP_PATH.'modules/common/libraries/vo/vo_abstract.php' );
because the "modules" path may need to change. Can I somehow autoload ("include") the vo_abstract in CI (without instantiating it, as it is abstract)

Basically, what I'm after is how can one library in HMVC extend another library from a different module in the HMVC?

thank you.


Messages In This Thread
load library from different module in HVMC - by El Forum - 09-21-2012, 07:03 AM
load library from different module in HVMC - by El Forum - 09-22-2012, 10:12 PM
load library from different module in HVMC - by El Forum - 09-23-2012, 11:46 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.