Mecha CMS

Mecha CMS blog and documentation.

Version 1.2.4

Updated: Sunday, 07 August 2016

Changelog in Mecha 1.2.4.

Added

  • Method
    • Page::text()

Updated

  • Method
    • Converter::url()
    • Tree::grow()

Deprecated

  • Method
    • Text::toPage() → replaced by Page::text()
    • Text::toArray() → replaced by Converter::toArray()

Behaviour Changes in URL Converter

URL path prefixed with a / will be converted into full URL relative to the root domain. Suppose you have a Mecha site installed in the test folder, so these …

var_dump(
    Converter::url(""),
    Converter::url('/'),
    Converter::url('foo'),
    Converter::url('/foo')
);

… would become these:

http://localhost/test
http://localhost
http://localhost/test/foo
http://localhost/foo

Archive Page Improvement

Archive query now accept complete time parameter including day, hour, minute and second:

http://mecha-cms.com/2016/archive/2016
http://mecha-cms.com/2016/archive/2016/1
http://mecha-cms.com/2016/archive/2016-04
http://mecha-cms.com/2016/archive/2016-04/1
http://mecha-cms.com/2016/archive/2016-04-21
http://mecha-cms.com/2016/archive/2016-04-21/1
http://mecha-cms.com/2016/archive/2016-04-21-11
http://mecha-cms.com/2016/archive/2016-04-21-11/1
http://mecha-cms.com/2016/archive/2016-04-21-11-11
http://mecha-cms.com/2016/archive/2016-04-21-11-11/1
http://mecha-cms.com/2016/archive/2016-04-21-11-11-11
http://mecha-cms.com/2016/archive/2016-04-21-11-11-11/1

Download Mecha v1.2.4

Donation and Email Subscription