Articles:



Few ways to speed up magento

Magento

Magento is a very powerful Open Source eCommerce System, which offers offering unprecedented flexibility and control, but sometimes may be a little bit slower than other eCommerce platforms.

Most of the times this is caused by bad configuration of hosting environment, or by unoptimized hosting environment. This article contains few tips to speed up magento.

Read More

PHP Magic Constants

Other

In developing process, if you want to store a value that will remain the same along your script’s execution, you can define a constant.

Also PHP has some magic constants like PHP_VERSION, __LINE__, __FILE__, E_ERROR, __DIR__, __FUNCTION__, __CLASS__, and __METHOD__, E_ALL and others wixh can help you in your application development.

Read More

Factory design pattern

Design patterns

Factory is a design pattern, from the creational patterns category used in OOP to create objects without need to specify class full name. In other words without using new function.

The essence of the Factory method Pattern is to define an interface for creating an object and let the classes that implement the interface decide which class to instantiate.

Read More

How to disable and/or override an observer in Magento

Magento

If you develop application based on megento, sometimes we need to modify or even to disable some feature found in observer class.

Normally an observer is a model and can be overridden like a usual model using rewrite tag. Sometimes this method not work so in this article i describe a new method to disable or disable and override an observer.

Read More

Top 5 Design patterns used with PHP

Design patterns

In this article i will make a list with most used five design patterns used in PHP, based on my experience and other observations from IT PHP community.

So in my opinion most used design patterns in PHP are: MVC(Model-View-Controller), Singleton, Registry, Observer, Factory.

Read More

Disable default decorator(s) for Zend_Form_Element

Zend Framework

In this article i will describe some methods to remove/disable default decorators from Zend_Form_Element. Basicly are two method, one by calling some method if we had an instance of object Zend_Form_Element, and other if we extend or we build a custom Zend_Form_Element is from init method.

 

Read More

Magento mobile theme (how to redirect users to mobile theme)

Magento

Suppose that we have a website based on magento platform, and we have installed allready two themes, one for normal users and one for mobile users, or mobile devices.

For detect and redirect mobile users to mobile theme, can be done in many ways. In this article i present maybe simplest way to do that. For detect and redirect users to mobile theme and otherwise display normal theme following steps must be done:

Read More

Magento calls

Magento

Using block, models, helpers and other magento specific structures, is a little bit different from other PHP frameworks/platforms. In this article i show how to use these structures by calling them in other modules/places.

So, for calling a model structure in magento you can use this function:

Read More

PHP Data Types

Other

A data type is defined as a set of entities and the allowable operations on those values. Almost all programming languages explicitly include the notion of data type, though other languages may use different terminology.

And PHP has defined several data types.

Read More

Design patterns. What are? Where we use? Why is good to use?

Design patterns

Design patterns gained popularity in computer science after release of the book Design Patterns: Elements of Reusable Object-Oriented Software was published in 1994 by the so-called "Gang of Four", which is frequently abbreviated as "GOF".

The book still can be found for sale in nowadays and in that book was presented first collection of 23 design patterns.

Read More