April 13, 2007

random facts

Filed under: ZenMagick — DerManoMann @ 9:31 am

I thought I wou;d share a few more small fact about ZenMagick with the rest of the world. Who knows, it might be useful…

Using ZenMagicks zm_href(..) function will generate always links using product_info as main page
This saves one database lookup per link per page and makes all product links look the same. The product info
controller will resolve this to the actual page type (product_music_info, etc) when the page is requested.

Another benefit is that the URL still works even if the page type for the product is changed (useful, for example, for booksmarks)

Theme inheritance is handy but, of course, uses additional resources. If you know that you need a lot of custom theme code, it is perhaps worth copying the default theme folder (don’t forget to change the theme info class) and disabling inheritance. There is a ZenMagick setting for that, so in local.php it should look like this:

zm_set_setting('isEnableThemeDefaults', false);

This should save a few milliseconds during theme initialisation.

More next time….

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.