Our Blog

April 14, 2015
by Gabi DJ

Nested Blocks in Dot_Template

If you want to list items in a 4×4 grid such as a gallery you will need blocks on two layers, lines and columns, which means that you will use nested blocks.

Nested blocks are blocks inside other blocks.

There will be at least two variables representing the dimensions of the grid(user choice), eg: Lines & Columns/ All Items & Items per Line.

For this example we assume that the paginator in order to return only LC results per page, and only check when to go to the next row block.

LC – number of lines * number of columns Continue reading

Posted in Best Practice, DotKernel | Tagged , , , , , | Leave a comment

February 25, 2015
by Gabi DJ

GeoIP City Removed From DotKernel

In the newest version we have removed the GeoIP City integration. The City database on GeoIP 1.1.0 extension was causing a segmentation fault, which resulted in crashing or outputting an error instead of executing the PHP Code.

Continue reading

Posted in DotKernel, PHP Development | Tagged , | Leave a comment

January 29, 2015
by Gabi DJ

Caching in DotKernel using Zend Framework

It’s very expensive to load configurations and settings from XML files, on every requests.

First because of latency of accessing files from hard drive, second because of the XML
file parsing burden.

Because of that , we implemented in upcoming 1.8 version of DotKernel a cache layer where to store router, acl_role, menu, options(including seo_xml), browser_xml, os_xml, test between requests. More information about the variables which DotKernel cache by default follow this link: DotKernel Reserved Variable Names for Caching

Continue reading

Posted in DotKernel, Zend Framework | Tagged , , , | 1 Comment

January 29, 2015
by Gabi DJ

DotKernel Reserved Variable Names for Caching

This article is related to: Caching in DotKernel with Zend Framework Cache

The variables that DotKernel cache are below:

Router

Router is the object that load routes (modules, controllers, actions) settings from router.xml file. More info about router: http://www.dotkernel.com/docs/router-xml/

The router is cached as router. Continue reading

Posted in DotKernel, PHP Development | Tagged , | 1 Comment

January 29, 2015
by Gabi DJ

Configuring the Cache in DotKernel

This article contains the DotKernel cache layer configuration guide.

The DotKernel Caching Layer is based on Zend Framework Cache, more configuration options can be found at the following links:

Continue reading

Posted in DotKernel | Tagged , , , | 1 Comment