Category: PHP

If you need to migrate a PrestaShop website from a local to a remote installation or just change the domain name, you need to follow these steps: 0. For security reasons, make a backup of all files and database 1. …

Migrate Prestashop to another server Read More »

Tagged with: , ,

In the general case the website caching happens on the server side where the PHP output or database objects are cached in static files or in the server RAM. That could work pretty good but we could improve that and …

HTTP cache control on a dynamic PHP page Read More »

Tagged with: , , ,

Here’s a quick and dirty utility method for type checking an object or an array of objects. [cc escaped=”true” lang=”php”]/** * Ensure the object (or the first item in the * array of objects) is of the specified type * …

PHP Type Checking Read More »

Tagged with: , , ,

Let me introduce you “Type hinting” Lets face it, PHP was thought and developed as a weakly typed programming language. But with more and more Object Oriented Approaches and structures introduced into PHP it needs to comply to certain rules. …

PHP Type Hinting – Good practices Read More »

Tagged with: , ,

Hello guys! This is my firs post so I’ll keep it short for now. I could say I am newbie with CakePHP framework. I’ve been working with it just for a couple of weeks so far but I think it’s …

CakePHP – User authentication and registration Read More »

Tagged with: , , , ,