Ticket #1037 (confirmed task)

Opened 3 years ago

Last modified 17 months ago

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

Changed 17 months ago by laurentj

  • status changed from new to confirmed

Changed 5 months ago by laurentj

  • blocking 463 removed

(In #463) For Jelix 1.5, we have been done all that was possible without breaking everything.

Note: See TracTickets for help on using tickets.