weekly update
Seeing that I am too tired to do anything else I figured I might as well write my weekly update a bit sooner (for a change!).
Although, I have to say it really feels like Thursday…
Anyway, so what have I done?
- YAML
I added spyc, a YAML library to be used for future and existing configuration files. Perhaps I should say configuration data, because the url mappings, etc haven’t been in a configuration file, but wrapped in a function!
So, url and sacs mappings are converted, including refactoring of the url mapper as a bonus! More to come.
I have to say it’s an easy exercise, mostly because you can also dump arrays as YAML, so dumping existing internal array structures in YAML allows to convert things in minutes, provided there isn’t anything else to change in the structures. - Full release build
Main thing here was that the build process will move the extras folder into install_zc, so it is more likely to be removed or at least inaccessible than now. - Plugins
Converted a few more plugins, which lead to further refinements in the way plugins use the MVC code. I think I’ve got working examples for all possible combinations now! - Fixes/regressions
I fixed heaps of stuff, mostly things I broke on the way. However, there have been a few things that must have been broken since 0.9.7, so I am not sure about the amount of thrashing the snapshots actually get… - blockHandler
On request of a certain person I wrote a new plugin, including some small changes to view code to allow to map arbitrary contents to HTML comments (if they follow a given syntax). There is no UI, so usability is limited so far. I hope that is going to change soon (wink, wink). - admin
Well, converting all ZenMagick admin pages to using the MVC code felt so good, I decided to see what happens if I just take any existing zen cart admin file (I tookstats_customers.phpandcustomers.php, btw) and try to convert that into a view template (although keeping all the logic in the file for now).
Turns out that is really really easy! Just remove all common HTML like the <head> section, the common footer code (includingapplication_bottom.php, etc.), add one or two global $db; and there you are – zen cart code served by the ZenMagick default admin controller!
Obviously there is more than that. Forms still point to the wrong URL and hiddenmain_pageelements will be needed for POST forms, but it’s a good start and it looks like it will pave the way to being able to change the default layout of the admin pages soonish.
Of course, all that is more than I wanted to put into this release, but why stop when it is so much fun
I’ll try to get a new snapshot uploaded tonight or the weekend as the latest. Unless there are major complains that code will be the promised Christmas release.
Comments Off
