Ticket #24 (accepted Feature Request)
Class loader for module
| Reported by: | mumuri | Owned by: | Guite |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.0.0 |
| Component: | Object Library | Version: | |
| Keywords: | Cc: |
Description
by default a class loader is already implemented with zikula
with this tree
myModule/ myModule/classes myModule/classes/myPackage/MaClasse.class.php myModule/pnuser.php myModule/pnuserapi.php
you can load class like this
Loader::loadClassFromModule("MyModule","myPackage/MaClasse",false,false,"");
if possible, i would like to have a feature to load the class like this
Loader::import("MyModule.myPackage.MaClasse");
with eventualy an "importCore" to load the class from /includes/pnobjlib
AND better like this
Loader::import("MyModule.myPackage.*");
where all the class under "myPackage" will be loaded at once.
thanks in advance
Change History
Note: See
TracTickets for help on using
tickets.
