Chris Morrel’s great post about subdomain mapping to modules in Zend Framework.
Mysql Backend Adapter For Zend_Cache
Zend_Cache is a useful package in Zend Library. It has many backends for storing the cache. Mostly used adapters are File, Memcached, Xcache and APC backends.
In one of the projects that I was working in, we are using Zend_Cache with File backend. Due to the biggest number of cached values, Zend_Cache created thousands of cache files under same folder. This caused performance failures during cache usage in the application. Because of the some business (concerns of customer of the project) concerns we couldn’t use Memcached, XCache and APC. I have created a new backend adapter for Zend_Cache that stores the cache to the database tables.
You can download and use if you think it is useful in your cases.
Example Usage
$cache = Zend_Cache::factory('Core', 'Mysql', $frontendOptions, $backendOptions);
Download Link: Mysql.php
Zend Framework and MVC
Hi, in this article i will mention about the topic MVC that used in Zend Framework.
I think, most of you have heard about the term MVC. So, what is this MVC? MVC stands for Model-View-Controller and it creates the basic substructure of current modern web applications.
For more details click here
Combining Static (JS, CSS) Files
Generally we use more than one CSS and Javascript files in our projects. In some cases the number of the files grows up to 10 or bigger. This causes big number of HTTP requests to servers. To reduce the number of HTTP requests a simple solution is to combine the static files into one big file. To improve the performance you can minify and gzip the big files.
There are some solutions that can be found by some search. I have tried some of them and below is the list of solutions which I found more helpful.
http://rakaz.nl/2006/12/make-your-pages-load-faster-by-combining-and-compressing-javascript-and-css-files.html
http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php
Later I will write an article describing my solution with Zend Framework. An task is opened Zend Framework for creating a package for it.
Zend Framework Courses – Introduction
Hello everyone, I am here with Zend Framework tutorials.In this series, i will try to tell you about Zend Framework by using my experiences.Zend Framework will be discussed on Linux(Ubuntu).
Before starting the tutorial i want to make an important reminder.I would recommend you to practise examples at the end of each subject, the more you practise, the easier you understand.
In this tutorial, i will tell you about Zend Framework installation and i will give you an example at the end.
What is Zend Framework?
Zend Framework is a library written in PHP that contains several components. Nowadays, it is widely used on web applications. For more details click here
Creating a separate mobile layout for a Zend Framework Application
If you need a mobile layout for your ZF application, you can do it by changing the layout in custom a controller plugin. The article written by Kevin Schroeder describes how to do it.
Link: http://www.eschrade.com/page/creating-separate-mobile-layout-zend-framework-application-4bcf7545/
Using Common View Helpers
A good article describing configuration of common view helpers that can be reachable from the views of all modules in your application.
http://www.mixedwaves.com/2010/03/accessing-and-using-zend-view-helpers-from-a-common-directory/
Mail Logging
Mail Logging
In order to know what scripts are sending out e-mail, we can use the mail.log directive in php.ini.
;; This will log every mail() call
mail.log = /path/to/file
A sample log line
mail() on [/tmp/script.php:2]: To: ilia@ilia.ws -- Headers:
The __DIR__ Directive
The __DIR__ constant is a simple and fast solution to the “where am i?” question for php scripts.
echo __DIR__;
The below code prints “/tmp”.
Source: http://ilia.ws/archives/228-Hidden-Features-of-PHP-Slides.html



