Actions

Talk

JUser

From Joomla! Documentation

Creating a fresh User - Example

Good start, but this needs to be expanded and improved. I suggest the following:

  1. Don't use acronyms like "DB" for "database" and so on.
  2. Code should follow Coding Standards as it needs to set a good example.
  3. Don't introduce functions that are not part of the Joomla! Framework or Joomla! CMS (MRender in this case).
  4. 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.
  5. Do try to use descriptive variable names (eg. maybe "$user" instead of "$NU").
  6. 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)