1.9 KiB
1.9 KiB
#Developer Notes
##Programming Style Follow the CodeIgniter Style Guide - and:
- Stick to PHP 5.2 features - unless I have a PHP 5.3 bundle with PHP-GTK for Windows attached
- Do not use spaces to align code
- Do not use
global
,eval
- Do not use the error suppressor
@
- Add a docblock to every method
- Use heredoc string syntax for multi-line SQL statements to minimize PHP escape characters
- Use prepared statements whenever possible
PHP-Gtk Resources
- Reference
- Official Tutorials
- Community site - Contains various tutorials
- php-gtk2 Cookbook - Various tutorials, requires registration
Database reference material
Firebird
- Interbase 6 Lang Ref - SQL Syntax (pdf)
- Firebird Lang Update Ref - SQL Syntax Updates
- Meta Data Queries
MySQL
PostgreSQL
SQLite
- SQL Syntax
- Pragma SQL Syntax - Internal / Performance Stuff