Our Blog

January 29, 2015
by Gabi

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 , , , | Leave a comment

January 29, 2015
by Gabi

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

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

June 6, 2014
by Julian

Implementing the new Password Hashing API from PHP 5.5 in DotKernel

In order to use the new Password Hashing functions , introduced in PHP 5.5 , and unify all password related functions , used for both admin and users, we did a major refactor of DotKernel codebase, in version 1.8.0 , starting from revision 799.

See more on that matter here

Continue reading

Posted in DotKernel | Leave a comment

May 6, 2014
by Julian

Better Unicode Support in MySQL 5.5 UTF8MB4

Beginning with version 5.5 of MySQL , utf8mb4 character set was introduced, in order to better support Unicode.
Further reading: MySQL and Unicode , also directly related to PHP

Sample dk.sql file, part of DotKernel framework, was updated in revision 793

Only one downside , is not possible to use anymore VARCHAR(255), as you will get the error:

#1071 - Specified KEY was too long; MAX KEY LENGTH IS 767 bytes

Explanation here ; so we use instead VARCHAR(150)

Now we should change the connection charset. In config/application.ini file, edit the below line :

database.params.charset = utf8mb4

Other changes that can be made in my.cnf file are all related to replacing the string utf8_* with utf8mb4_*

character_set_server=utf8mb4
collation_server=utf8mb4_general_ci
collation_server=utf8mb4_unicode_ci

Posted in Best Practice, PHP Development | Leave a comment