This repository was archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Manual
Fabrizio Balliano edited this page Mar 9, 2014
·
3 revisions
This is a work-in-progress manual, feel free to contribute!
-
Installation
- Requirements
- Installation
- Hello World example
-
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
-
Organizing data in a tabular way: the table
- Basic concept
- Preparing a source
- Connecting table and source
- Some configuration
- Columns
- Action columns
- Grid table
- Simple Edit Mask
- Maybe the most important widget: the field (in progress)
- Validate user data (to be written)
- Menus (to be written)
- Understanding events (to be written)
- How P4A manages AJAX (to be written)
- Multilingual applications
- Helpers
- Customizing the layout
General:
Documentation:
Theme customizations:
Contribs: