mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add more HACKING guidelines.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
f3a29356c5
commit
710ff234fb
1 changed files with 8 additions and 4 deletions
12
HACKING
12
HACKING
|
@ -13,12 +13,16 @@ Please don't add any mode lines. Adjust your editor to display tabs to your
|
|||
preferred width. Generally code should work with the standard eight column
|
||||
tabs.
|
||||
|
||||
PHP
|
||||
---
|
||||
No short open tags. '<?'
|
||||
Do not end files with a close tag. '?>'
|
||||
Try embedding as little HTML in the PHP as possible.
|
||||
Consider creating templates for HTML.
|
||||
Try embedding as little XHTML in the PHP as possible.
|
||||
Consider creating templates for XHTML.
|
||||
|
||||
All markup should conform to XHTML 1.0 Strict requirements.
|
||||
You can use http://validator.w3.org to check the markup.
|
||||
|
||||
Prevent PHP Notices by using isset() or empty() in conditionals that
|
||||
reference $_GET, $_POST, or $_REQUEST variables.
|
||||
|
||||
MySQL queries should generally go into functions.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue