Zend Framework: Using Smarty as template engine

Posted by Dmytro Shteflyuk on under PHP

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 »

Zend Framework: Router for subdirectory-based site

Posted by Dmytro Shteflyuk on under PHP

I started discovering of Zend Framework and was confronted with a problem. When I’ve placed my test sample into site’s subdirectory (http://localhost/test/), default router tried to find TestController which is not exists of course and routed me to IndexController/noRoute. It’s not good for me. I decided to create my own router.

Read the rest of entry »

How to force Zend Studio to use Russian language interface

Posted by Dmytro Shteflyuk on under PHP

By default Zend Studio does not allow to change interface language to Russian. I found simple trick to do so. Go to the config folder (config_5.0 for Zend Studio 5.0 and config_5.1 for 5.1 version). This folder usually placed under c:Documents and Settings<Your Current User>ZDE.

Then open desktop_options.xml file and find following strings:

1
2
3
<customized_property ID="desktop.language">
    <locale language="en" country="" variant=""/>
</customized_property>

You need just to change language attribute to ru and country attribute to RU. That’s All!

Zend releases first version of Zend Framework

Posted by Dmytro Shteflyuk on under PHP

Finally in the end Zend has released first version of the Zend Framework project.

Zend Framework is a high quality and open source framework for developing Web Applications and Web Services.

Built in the true PHP spirit, the Zend Framework delivers ease-of-use and powerful functionality. It provides solutions for building modern, robust, and secure websites.

First I have observed is it really has powerful functionality. Framework includes classes for working with databases, RSS-feeds, remote HTTP-servers, Web-forms data, JSON, mail, different Web-services (include classes for Amazon, Flickr, and Yahoo), MVC implementation, and also facilities for generating PDF-documents and logging.

This is very serious framework, but I doubt efficiency of it. I don’t want to get just another PEAR library. I will look it more precisely in the near future.

You can download it here.

New administrator’s blog has been founded

Posted by Dmytro Shteflyuk on under Links

My best friend Alexey Kovyrin founded new blog — Homo-Adminus Blog. As he mentioned in our conversation this blog was intended for improve his english skills. I think we’ll find many interesting news and ideas on this page.

Here You will be able to read my notes about my admin’s life, about some interesting news in IT world, maybe some links to interesting web resources.