Ticket #1037 (confirmed task)
use namespace in jelix
| Reported by: | laurentj | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Jelix 2.0.0 |
| Component: | jelix | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: | Php version: | ||
| Hosting Provider: | Blocked By: | ||
| Documentation needed: | no | Blocking: |
Description
we could use namespaces for all jelix components.
Proposition of namespaces :
- jelix: global namespace
- jelix\db : namespace of jDb
- jelix\dao : namespace of jDao
- jelix\core : namespace of files of the core
- etc. for all components inside lib/jelix/. the idea is to use jelix:name_of_component, where name_of_component is the name of the directory inside lib/jelix, so the autoloader could load easily the component.
For modules, we could use jelixmodule\modulename\a_class to load a class of a module with the autoloader.
Change History
Note: See
TracTickets for help on using
tickets.
