JUser: Difference between revisions
From Joomla! Documentation
m Talk:JUser example moved to Talk:JUser: Should be a subheader under JUser |
Bembelimen (talk | contribs) Creating a fresh User - Example |
||
| Line 1: | Line 1: | ||
== Creating a fresh User - Example == | |||
Good start, but this needs to be expanded and improved. I suggest the following: | Good start, but this needs to be expanded and improved. I suggest the following: | ||
# Don't use acronyms like "DB" for "database" and so on. | # Don't use acronyms like "DB" for "database" and so on. | ||
| Line 7: | Line 8: | ||
# Do try to include any jimport statements if these are required. | # Do try to include any jimport statements if these are required. | ||
[[User:Chris Davenport|Chris Davenport]] 15:45, 7 April 2008 (EDT) | [[User:Chris Davenport|Chris Davenport]] 15:45, 7 April 2008 (EDT) | ||
::I added some comments and expanded the "registration example" -- [[User:Bembelimen|Bembelimen]] 12:49, 2 December 2008 (EST) | |||
Latest revision as of 17:49, 2 December 2008
Creating a fresh User - Example
Good start, but this needs to be expanded and improved. I suggest the following:
- Don't use acronyms like "DB" for "database" and so on.
- Code should follow Coding Standards as it needs to set a good example.
- Don't introduce functions that are not part of the Joomla! Framework or Joomla! CMS (MRender in this case).
- Do try to explain clearly what the code does (and what problem it solves) without assuming that the reader has extensive understanding of Joomla! itself.
- Do try to use descriptive variable names (eg. maybe "$user" instead of "$NU").
- Do try to include any jimport statements if these are required.
Chris Davenport 15:45, 7 April 2008 (EDT)
- I added some comments and expanded the "registration example" -- Bembelimen 12:49, 2 December 2008 (EST)