Skip to content

Release Notes: 1.3.0

Sithu edited this page Apr 2, 2015 · 4 revisions

Download

Download at http://phplucidframe.sithukyaw.com/downloads

What's New in Release 1.3.0

  • A script out of auto-bootstrap is allowed to bootstrap with LucidFrame environment explicitly using chdir('/path/to/root'); and require_once('bootstrap.php');.
  • Added AsynFileUploader (Asynchronous File Uploader) which is Ajax-like file uploader with instant preview and that is compatible with Ajax form. See the section 12.2, 12.3 and 12.4 of the documentation and example code. AsynFileUploader uses the directory /files/tmp by default. So, you will have to chmod the directory to make it writable.
  • #27505aa: Added file upload error handling and returning error API, e.g., $instance->getError().
  • #02d4c6c: Changed @return API of File->upload() returning the complete file upload information of name, fileName, extension, dir and uploads - array('name' => 'Name of the input element', 'fileName' => 'The original file name', 'extension' => 'The selected and uploaded file extension', 'dir' => 'The uploaded directory', 'uploads' => array('dimension (WxH) or index' => 'The uploaded file name like return from basename()'));.
  • Added general Getter function to the File class such as $instance->get('propertyName').
  • Added a private property name to the File class, which can be set via the constructor and can be get through $instance->get('name').
  • Added a private property originalFileName to the File class, which can be get through $instance->get('originalFileName').
  • Added a global variable of clean route without query string which could be accessible through _cfg('cleanRoute') in PHP and LC.cleanRoute in JS.
  • db_extract() returns an array of key/value list only when the query given has two fields to be retrieved and they have the field aliases "key" and value respectively. See the section 10.1 Retrieving Your Data in the documentation.

Minor Changes & Bug Fixes

  • Two new tables, post_image and document, are added in the sample schema sample_db_1.3.sql to try out the AsynFileUploader example.
  • Return false from db_extract() when there is no record found.
  • Added logo 180x180px.
  • Removed special characters from the uploaded file name.
  • Renamed the routes configuration variable according to the standard.
  • Skip validations if the option rules is not provided
  • Added VeriSign user agent identification check in _isBot().
  • Fixed CSS for thumbnail, font-size, table div.
  • Updated social icons including new Google+ icon.

Documentation Update

The following are new updates in PDF documentation.

  • [new section added] 6. Bootstrapping
  • [new section added] 12. File Helper
  • [new section added] 12.1. File Upload Form and File Handling (this section is migrated from the section "Forms")
  • [new section added] 12.2. AsynFileUploader (Asynchronous File Uploader)
  • [new section added] 12.3. PHP Hooks for AsynFileUploader
  • [new section added] 12.4. Javascript Hooks for AsynFileUploader