Welcome, Guest
Username: Password: Remember me

TOPIC: JDom HowTo / JDom doc

JDom HowTo / JDom doc 04 Aug 2012 13:03 #2984

  • e-struct
  • e-struct's Avatar
  • Offline
  • Senior Member
  • Posts: 76
  • Thank you received: 4
  • Karma: 5
About JDOM coding:
I am able to read :) from the doc but unfortunately unable to understand :silly:
The enlighted text is confusing...
Where can I download complete JDom namespace list
And provide us with some sample code ... please... that is always a good point to start


How to modify it ?

The only files to don't touch are dom.php and html.php
All others files are placed in a files tree that correspond to the called namespace.
Ex: html.form.input.editor is the html/form/input/editor.php file.

★ If you rewrite a file for an existing namespace, please keep intact the names and positions of the parameters.

Can I write my own files ?
Yes you can, and you should !

★ Respect the JDom standard to place your file in the correct directory, depending on which namespace you choosed.
★ Defines the namespace level (first class property)
★ Register the parameters in the constructor.
★ Write the build() function wich return the rendered HTML.

Important note : Please don't write a file for an existing namespace.
Please consult the complete JDom namespace list (Comming soon), or simply download complete JDom.
If you rewrite an already used namespace, it could cause an incompatibility if you reuse it in a future Cook project.
Last Edit: 04 Aug 2012 13:05 by e-struct.
The administrator has disabled public write access.
Time to create page: 0.079 seconds

Get Started