Fabriq Changelog
This page contains an over view list of the changes that are implemented in each release of Fabriq. Note: the changelog was not started until version 0.5 of Fabriq.
Version 1.5.1 – Feb 20, 2012
- Merged core classes into single core file
- Merged core module classes into single core file
- Added warning messages to code that has been deprecated
Version 1.5.0 – Feb 18, 2012
- Start of development branch for Fabriq 1.5.x line (exact same code as 1.4)
Version 1.4 – Feb 18, 2012
- Fixed a bug that prevented copying an app to a new location from being installed correctly
- New stable version
Version 1.3.7 – Sep 16, 2011
- Fixed bug in Fabriq modules when scanning modules directory for new modules
Version 1.3.6 – Sep 12, 2011
- Updated users#myAccount to be able to be loaded with AJAX
- Fixed bug in fabriqmodules controller for module scanning trying to read the README file for that directory as a directory
Version 1.3.5 – Jul 8, 2011
- Rolled core modules into main project
- Moved from SourceForge to GitHub
Version 1.3.4 – Jul 7, 2011
- Fixed PathMap class, moved FabriqTemplates include file
- Fixed templating initialization to not overwrite template set by PathMap
- Fixed Fabriq installer missing tables and not installing the version number
Version 1.3.3 – Jun 4, 2011
- Fixed FabriqModules::render_now() function to be able to render custom module views
Version 1.3.2 – May 31, 2011
- Fixing bug in FabriqModules that prevented install from running
Version 1.3.1 – Apr 23, 2011
- Added event handling and trigger to modules
- Fixed the install template
- Added Fabriq::empty_css_queue() function to clear out all stylesheets except for the base CSS file.
Version 1.3 – Mar 21, 2011
- Added templating system
- Added module system
- Updated database prepare function to check that inputs are in an array and if a single input, to put it into an array
- Added placeholder creators for database class
- Removed PostgreSQL support for the time being because it was a poor implementation
- Started the Fabriq UI JavaScript and CSS framework components
- Moved fabriq.base.css to the core directory
- Cleaned up structure of the index.php file to reduce the amount of code
- jQuery is now required for the Framework and the include was moved to index.php
- Moved the includes for fabriq.js and fabriq.base.css to the index.php
- Added PIE to the libs directory
- /app/helpers is now deprecated. Move all functions from custom helper files into their controllers as private functions and update references. This functionality will remain until the first release candidate for the official 2.0 version
- Fixed bug in Database::qmarks()
- Added a new install and update system to make it easier to install the framework and update it. The install and update functions make use of the framework functionality. After updating to version 1.3, a user assigned the administrator role will be required to run further updates
Version 1.2 – Oct 27, 2010
- Fixed bugs in Model::find()
- Fixed a bug in Model::fill() that didn't properly display zero count when collection was empty after calling Model::fill()
- Cleaned up license text
- Fixed bug in class autoloading function
- Cleaned up 404 error reporting in index.php
Version 1.1.1 – Oct 21, 2010
- Fixed bugs in Model::find() function
Version 1.1 – Oct 16, 2010
- Added support for PostgreSQL. When setting up a new app, you now have the choice between MySQL (default) and PostgreSQL. The Model class has been updated to work with PostgreSQL as well and you can continue to use Model::find(), Model::create(), Model::update(), and Model::destroy() the same way for both MySQL and PostgreSQL. See the Database interface for the common functions between the MySQL and PostgreSQL Database classes.
-
Updated .htaccess so that directory listing is disabled. To re-enable, open the .htaccess file and change the line
Option -IndexestoOption +Indexes - Added the libs directory for organizing and using external libraries with Fabriq. A local copy of jQuery is now stored in the directory /libs/javascript/jquery/ for use.
- Added core class FabriqLibs for working with external libraries
Version 1.0 – Oct 3, 2010
- Official version 1.0 is released!
- Action setting in the BaseMapping class was fixed to not accidentally overwrite values passed in through the path
Version 0.12.1 – Oct 26, 2010
- Moved include for /app/helpers/application.helper.php file to be included before PathMap::map_path() is called in index.php
Version 0.12 – Sep 17, 2010
- Removed all deprecated functions from the code
Version 0.11 – Aug 29, 2010
- Fixed Database::prepare_select() to set data pulled from the database to the right keys
- You no longer need to call Fabriq::model('ModelName') to load models. Models will now be automatically loaded whenever you instantiate a new copy.
- Added the static keyword where appropriate
- NOTE: all deprecated functions are marked as warnings with the Messaging class. Please update your code to remove them. The next release of Fabriq will not have deprecated functions in it.
Version 0.10 – Aug 8, 2010
- Cleaned up find function in the Model class. If your code uses the old version, your code can be updated to call find_old, however, you should update your code to use Database::prepare_select(). find_old in the Model class will be removed in version 1.0
- The find function in the Model class now accepts the string 'all' to select all records from the database and add them to the collection. Please note that for very large collections, it is possible that PHP will time out before returning all of the records. Be sure to only use 'all' for small collections.
- Added fields and fieldsStr functions to the Model class to make it easier to work with the Database::prepare_select() function
- Merged update and updateAt functions in the Model class. updateAt will be removed in version 1.0
- Merged create and createAt functions in the Model class. createAt will be removed in version 1.0
- Functions in the Fabriq class that are marked as deprecated will now be removed in version 1.0
- Added 404 (page not found) and 500 (internal server error) base functions to the framework in the errors controller. You can set up your server to point to the proper actions by pointing them to http://example.com/404 and http://example.com/500 (replacing http://example.com with your domain). This functionality can easily be extended to include other errors as well as custom error codes by adding them to the errors controller, creating the proper views, and updating the /app/PathMap.class.php file. Please note that when creating new errors, your functions should be named with string valuesrather than numeric values (ex: 404 is the action fourohfour and 500 is the action fiveohoh).
Version 0.9 – Jul 25, 2010
- Added error reporting in the Database class
- Added the Messaging core class
- Added default message box styles to the base stylesheet
- Fixed .htaccess file to properly map files called in the /core directory
Version 0.8.2 – Jul 18, 2010
- Fix for install.php script errors
Version 0.8.1 – Jul 17, 2010
- Added fix to deprecated Fabriq::build_path() function
Version 0.8 – Jul 15, 2010
- Changed create and update functions in /core/Model.class.php to do value and type checks for NULL values
- Moved fabriq.js to /core directory
- Added /core/Controller.class.php, /core/BaseMapping.class.php, and /app/PathMap.class.php
- Updated path mapping related functions to use new mapping classes
Version 0.7 – Jun 17, 2010
- Changed DOCTYPE in public/404.html and public/500.html
- Added core/Controller.class.php to add more OOP functionality to Fabriq and future proof future feature ideas
- Modified path mapping to render given controller and action and then render render_controller and render_action if different
Version 0.6.4 – Jun 16, 2010
- Added createAt() and updateAt() methods to Model class
Version 0.6.3 – Jun 12, 2010
- Added add() method to Model class
- Changed DOCTYPE in /app/views/layouts/application.view.php to prepare for HTML5. This DOCTYPE is backwards compatible with older versions of HTML.
- Aliased PHP Fabriq::build_path() method in /core/Fabriq.class.php to Fabriq.build_path() in JavaScript fabriq.js file
Version 0.6.2 – Jun 2, 2010
- Fixed bugs left in Model class after moving to use stdClass
Version 0.6.1 – May 29, 2010
- Removed instances of array_push from core to reduce overhead
Version 0.6 – May 26, 2010
- Removed /core/Object.class.php in favor of using PHP's stdClass
- Added the remove() function to /core/Model.class.php to be able to remove items from the collection
- Updated install.php, index.php, and /core/Database.class.php to make use of the $_FDB['default'] settings
- /core/Database.class.php was updated to be able to be used for different database connections
Version 0.5 – May 8, 2010
- Moved from mysql to mysqli PHP extension
- Added ability to use prepared queries for security
- Moved all functions in /core/Fabriq.function.php to an abstract class in /core/Fabriq.class.php
- Made all corrections in core files and index.php to reference the Fabriq abstract class
- Added Fabriq JavaScript functions for working AJAX