Category: P4A

P4A 2.2.2, hot fix for a db_source bug »

Changelog:

- Major bugfix on P4A_DB_Source::saveRow(), the patch from Edr (introduced in 2.2.0) was removed and a few checks were added to prevent inconsistency
- some little bugs on P4A_DB_Source were fixed

Download P4A 2.2.2

P4A 3 rendering layer discussion »

This post will not be easy to write… I’ll try to explain you what kept us really busy in the past 2 weeks. ok a screenshot could help me :-)

In the P4A 3 roadmap post, I told you about a new widget rendering system… I didn’t post more technical info intentionally, I wanted to create a bit of suspense :) but I also wanted to do some tests before publishing news.

For P4A 3 we’d like to have a killer graphic with killer features (resizable widgets, border layouts, beautiful and powerful menu and so on) thus we looked to the biggest javascript frameworks out there: extjs and dojo. Both have great features and both have issues.

Extjs as really a killer graphic layout, and it’s released under LGPL3 (developers wrote some licensing notes that I can’t really understand… actually I think that those notes could conflict with LGPL3 itself) but it has not an open SVN and development is quite closed. Another note: only community support is for free.

Dojo is more polite with licensing and it’s released under BSD, but I don’t like the graphic layout too much and the way you’ve to code your applications writing a non-standard HTML with dojo-only attributes. It has some accessibility features.

Some considerations:

  • In my tests I found bugs in both frameworks
  • porting P4A to one of these tools is a “1 way road”
  • relying the rendering layer to a 3rd party project means we’ve to 1000% trust this project
  • these tools do not have a good print CSS support

We would have a 3rd option: continue on our road with quite standard HTML but rewrite our CSS from scratch with a CSS reset and a modular design which will give us better control.

I wrote extjs developers to know if they’re interested in a collaboration with P4A, I’m waiting for an answer but I’m looking for your considerations too, community it’s important to me, please let me know what you think and what are your experiences with those tools (or suggest others).

P4A 2.2.1, first maintenance release for 2.2 serie »

Changelog:

- multicheckbox field and multiselect field now support saving in single table field
- P4A_Field::setMultivalueSeparator method was added
- a bug with images on p4a_table wal solved
- rich_textarea “Full” theme was added
- jQuery::form was updated to 2.01
- a bug with empty “file” fields submitted with an ajax call was solved

Download P4A 2.2.1 here

P4A 3.0 roadmap »

ok here you have:

  • brand new widget rendering system, it will provide a new experience from the users point of view, a richer set of widgets and the best browser support (we’re doing deep tests right now, more info will follow)
  • PHP5 only
  • add Zend Framework
  • replace adodb with Zend_DB
  • define which database engine will be supported (I think MySQL, PostgreSQL, Oracle, SQLite) and drop support for all the others
  • solve definitively all the problems with all supported databases
  • replace our date parsing/formatting library with Zend_Date
  • drop all localization formats and use Zend_Locale’s (which uses unicode.org formats)
  • replace our numbers/currency formatting library with Zend_Locale
  • replace our translation library with Zend_Translate
  • make every output string to be translated and make the translation system work the way gettext work (making possible to include partial translations)
  • create a tiny php5 optimized library to replace phpThumb
  • completely remove PEAR

Yes, it will be a huge, massive and killer release, I promise it will rock!

P4A 2.2 is finally out »

This is the month of the big releases :-) first was UCK 2.0 a few days ago, now it’s time for P4A - PHP For Applications 2.2!

Highlights of this release:

  • Prototype/scriptaculous were dropped and jQuery was added. Thanks to jQuery and some wonderful plugins we added a new color picker field type, the ajax file upload feature, some great improvements to the popup system also with the ability to block the underlying interface and a beautiful audio/video preview system.
  • Answering to many request the tooltip system was implemented, $field->setTooltip() and you’ve done the work of providing information about fields on your mask.
  • Another requested feature: field autocomplete, similar to the google suggest one, enjoy it
  • A smooth “helpers system” was introduced, now everyone can really write plugins for P4A, overriding core mothods without having to patch framework’s file (this only works with PHP5)
  • The getid3 library was added, its work is to read all data from multimedia files and pass them to P4A that will use them and store them. Now we have a better width/height/mime-type detection for many and many multimedia file formats.
  • …and many many improvements and bugfixes, check the changelog for the complete list

Upgrade:
You should have no problems directly upgrading from 2.0.6 to 2.2.0, otherwise write us on the help forum!

Download:
Can’t you wait? Here you have:
P4A 2.2.0 download

Future:
You already know that we can’t stop, things are already moving… we’ll publish more info very soon, also because I’m going to commit some preliminary tests for the next big step: P4A 3.0. Don’t miss it, I swear you’ll like it.

Technical note:
If you use P4A SVN, please switch to the 2.2 branch and don’t use the main trunk anymore!!! That’s because we’re working on it for P4A 3.0!

see you :)

New P4A development snapshot, 2.1.4 »

In the latest days I took a deep breath and went on finishing some pending tasks on P4A devel snapshot, they were waiting since too long… I was thinking about releasing the 2.1.4 as 2.2.0 but… better wait till the end of summer.

The main part of the work was finishing porting the P4A_DB_Navigator drag&drop to jQuery, finally this task is over and it seems to work the right way.

In this release you’ll find the color picker field type and some libraries updates.

Here you have the changelog:

- P4A_Field::setType(’color’) was added with nice color picker plugin (fabrtastic) from jQuery
- a bug with file upload error trapping was solved
- FCKEditor was updated to 2.4.3
- jQuery was updated to 1.1.3.1
- jqModal was updated to 2007.07.30 +r10
- P4A_DB_Navigator drag&drop functionalities were implemented thru jQuery

and the download link:
http://tinyurl.com/2ruu76

P4A gains color picker (I really love jQuery) »

Screenshots talk:
the new p4a color picker

how to do that?
$field->setType('color');
that’s it.

This widget is done thanks to a lightly patched farbtastic color picker plugin for jQuery.

P4A gains ajax upload and much more thanks to jQuery »

jQuery, what a great peace of software… adding that to P4A gave us so many possibility we haven’t thought before, today with 4 lines of code I added the ajax file upload feature we were waiting for.

I also added some beautifications to popups and tooltips, but those were only some CSS things.

Anyway I hope we’ll be able to add more jQuery plugins ’cause things are getting really interesting :)

P4A gains audio/video preview »

Title is self-explanatory, when you upload an audio/video file in a file P4A_Field, you’ll see the “preview” button, clicking it will allow your to hear/watch your media.

P4A goes jQuery »

After a few months of staging I finally had some time to work on the jQuery porting for P4A, it was funny to see the loading rectango in the upper right corner fade in and out smoothly :)

Thanks to jqModal and dimensions jQuery plugins I could simplify the popup management having some good feature such as the background controls blocking when a popup is shown.

Hope new jQuery things will be added soon