Releases: mecha-cms/mecha
Releases · mecha-cms/mecha
v3.1.2
v3.1.1
Update Year
v3.1.0
Bug Fix
v3.0.1
Update
v3.0.0
- #156 Optimized hook sorting mechanism.
- #157 Layout now behaves like an extension. If it does not contain any
index.php
file, its entire layout system will be discarded. - #159 Renamed constant
DEBUG
toTEST
. - #164 Removed separator options from URL functions and methods.
- #165 Removed
$parent
variable, but addedparent
property for$page
. - #166 Removed
get()
,has()
,let()
andset()
methods from non-static classes. - #167 The
e()
function will no longer evaluate string in the form of JSON pattern. - #205 Re-enabled the layout switcher feature.
- #233 Added
$deep
option toHTML
andXML
class constructor to parse elements recursively without the help ofDOMDocument
class. - Added
$keep
option toTo::{file,folder}()
method. - Added class
XML
. - Added functions
abort()
,all()
,check()
,choke()
,cookie()
,delete()
,eat()
,ip()
,kick()
,long()
,lot()
,move()
,save()
,seal()
,short()
,size()
,status()
,store()
,token()
,type()
,ua()
,zone()
. - Allowed
Time
class instance without parameters. - Changed
path
state property toroute
. - Implemented WAI-ARIA to allow class-less styling of HTML markup.
- Improved
Genome
andPage
classes to make it possible to inherit (fake) methods and (fake) properties from the parent class automatically. - Improved
z()
function to properly export objects in the form ofstdClass
and any class instance that have__set_state()
method declared in it. - Loaded extensions and layouts in a try/catch block for safety.
- Moved
alert
,art
andform
feature to a separate extension. - Moved
To::{description,sentence,title}()
methods topage
extension. - Moved core extensions and layouts out of the repository and converted them into git sub-modules.
- Refactored function
has()
to make it more useful along withget()
,let()
, andset()
functions. - Removed
$html
option inTo::description()
(previously wasTo::excerpt()
). People who want to make page excerpt without HTML should be able to easily remove all the HTML markup from the input first, before using this function. - Removed
404.php
file requirement for layout. - Removed
clean
,d
,i
,port
property fromURL
class. - Removed classes
Cache
,Client
,Cookie
,Files
,Folders
,Get
,Guard
,Path
,Post
,Request
,Route
,Server
,Session
,SGML
. - Removed constant
GROUND
,PS
. - Renamed
From::dec()
andFrom::hex()
toFrom::entity()
. - Renamed
To::dec()
andTo::hex()
toTo::entity()
. - Renamed
To::excerpt()
toTo::description()
. - Renamed class
Anemon
toAnemone
. - Renamed constant
DS
toD
. - Renamed constant
ROOT
toPATH
. - Renamed function
anemon()
toanemone()
. - Standardized PHP
$_POST
data that was merged from$_FILES
data which now containsfrom
(in place offull_path
),name
,path
(in place oftmp_name
),size
,status
(in place oferror
) andtype
properties. - Upgraded PHP version requirement to 7.3.0.
- mecha-cms/x.page#1 Removed pagination for single page.
v2.6.4
- Added
Path::long()
andPath::short()
method. - Added
content-length
header to facilitate AJAX-based applications with progress bars. - Added
link
to the core extensions. - Added second parameter to the
content
function to allow user to use this function to create a file. - Fixed bug of
SGML
class when parsing attributes contain Base64 image URL. - #117 Fixed bug of default date format not applied to the output.
- Improved alert message session. Now you can print the
$alert
variable multiple times and all<alert>
elements will appear at each location. - #96 Improved class auto-loader.
\
now will be converted into/
, and__
will be converted into.
- Improved internal JSON validator.
- Improved path and URL resolver.
- Removed function
mecha
. - Renamed
$link->active
to$link->current
in layout navigation. - Updated function and method parameter names. Make them to be more semantic for better support with the new named parameter feature in PHP 8.x.
- Updated the default layout.
v2.6.3
Add 'content-length' Header
v2.6.2
Update
v2.6.1
Remove Trailing New Line(s)
v2.6.0
If ID is Numeric, Convert to Integer!