is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Last modified 10 years ago

#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: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


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 (2)

comment:1 Changed 10 years ago by laurentj

  • Status changed from new to confirmed

comment:2 Changed 9 years 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.