Manual
From P4A - PHP For Applications - PHP Framework
This is a work-in-progress manual, feel free to contribute!
- Basic concepts
- Structure of a P4A application
- The index.php file
- the objects folder
- Extending the P4A class
- What is a mask?
- The first mask
- Building a widget, the build method
- Placing a widget within a mask, the display method
- Create complex layouts: frames, canvas, sheets and fieldsets
- Using tab panes
- Connecting to a database
- The P4A_DSN constant
- P4A_DB
- P4A_DB_Source
- The load method and P4A_Data_Field
- Tying a db_source to a mask, the "setSource" method and the "fields" collection
- Using toolbars to do actions on a db_source
- The saveRow, newRow, deleteRow, nextRow, prevRow, firstRow and lastRow methods
- Maybe the most important widget: the field (in progress)
- Validate user data (to be written)
- Organizing data in a tabular way: the table (to be written)
- Menus (to be written)
- Understanding events (to be written)
- How P4A manages AJAX (to be written)
- Multilingual applications
- Helpers

