Crazy PHP world

Sep 14
2007 00:56 (PHP) · Русский (4,850 views)

We are living in XXI century, but PHPists can’t decide yet how to write: "text $b" or 'text ' . $b. I’m going slightly mad.

via Artjom Kurapov’s blog.

Exploring Zend_Controller class of Zend Framework

Apr 28
2006 00:19 (Development, PHP) · Русский (17,952 views)

Zend Framework team works with gusto on the Zend Framework, great framework for building powerful web-applications in PHP. But too many peoples are confused with its seeming complexity. In this post I will try to explain architecture of most useful part (in my opinion) of Zend Framework - Zend_Controller.

Read the rest of entry »

Correct Last-Modified header processing

Apr 10
2006 22:54 (Development, PHP) · Русский (20,139 views)

This is quick post about Last-Modified header. Please imagine following situation: you have image stored in your database and you need to send it to the browser on some request. But image extraction from database takes some time, and if there are more than one image you Web-server’s productivity will decrease dramatically. Is this case you need to implement caching functionality in your application. All images can be changed therefor you need to have ability to check image modified date (for example, this date can be stored in same database).

Read the rest of entry »

Zend Framework: Thoughts about Zend_Config

Mar 10
2006 10:48 (Development, PHP) · Русский (12,161 views)

In Zend Framework’s mailing list discussion about Zend_Config class is in full swing. I have my own ideas about this class and I will try to explain their here. I need something that can load and save configuration into different storages (for example, XML, database or plain text like INI-files), it’s necessary to have ability to change every parameter of storage (for example, file name, database tables or even database structure), it will be able if I can extend storage system with my own storage strategies.

Read the rest of entry »

Zend Framework: Using Smarty as template engine

Mar 08
2006 16:41 (Development, PHP) · Русский (73,069 views)

Zend Framework’s View class has very bad capability for extending. It contains template variables but does not allow to access them, it has array with different pathes (templates, filters), but does not allow to add another type or access them. Therefor only way to use Smarty with Zend Framework is to abandon Zend_View and manipulate Smarty object directly.

Read the rest of entry »

 
Copyright © 2005 - 2008, Dmytro Shteflyuk