Major changes in Midgard MVC
-
Henri Bergius
Major changes in Midgard MVC
Sun August 01 2010 09:30:09 UTCHi,
Based on discussions with the Rohea team and in Midgard Gatherings,
I'm now starting to land the major changes in Midgard MVC APIs in
preparation for Hrungnir. For now they'll live in my private GitHub
fork http://github.com/bergie/midgardmvc_core, but they'll land in the
official repo as soon as the whole set of changes is done.
The changes include:
* Old component interface classes are now replaced by a component
Provider. This means we can abstract the structure and workings of
components and for example create compatibility interfaces to other
MVC frameworks like MidCOM
* Similarly to components, the site hierarchy (node tree) now comes
from a hierarchy Provider. The plans include having a
configuration-based "hardcoded" node tree that web applications that
don't need user-manageable nodes can use
* Global context is now replaced with a Request object that gets
passed around during Midgard MVC execution. The current Request object
can be accessed via the old context interfaces for compatibility
* The merging models for configuration, templates and routes are now
synchronized so they all work in the same way
* It is now possible to give overriding configuration key-value pairs
when initializing Midgard MVC. This should be done in your own
rootfile
* Models (MgdSchemas, midgard_views and overriding PHP classes) should
now be stored into component's models/ directory
* Route definitions are being moved from component configuration to
the component manifest
Documentation for Midgard MVC is being worked on, and can be found
from http://github.com/bergie/midgardmvc_core/blob/master/documentation/index.markdown
I'll try to complete the changes before heading out for summer
vacation the coming Tuesday. After that the Midgard MVC APIs should be
semi-solid, so I can focus on performance improvements in September
before we freeze Midgard MVC for the Midgard3 release.
/Henri
--
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/
Skype: henribergius
Jabber: henri.bergius@gmail.com
Microblog: http://www.qaiku.com/home/bergie/
_______________________________________________
dev mailing list
dev@lists.midgard-project.org
http://lists.midgard-project.org/mailman/listinfo/dev
