Understanding addPackage(), loadClass(), and getService() in MODX

I have never completely understood the differences between getService(), addPackage(), and loadClass(), and I find most descriptions of them somewhat thin and misleading (including the ones in my book). I recently ran some tests, and although my understanding is still imperfect, I thought I’d share what I learned. Learn More

Tags: , , , , | Posted under MODX | 2 Comments

SocialEngine 4: Redirect non-www Requests to www

This simple tutorial will teach you how to redirect non-www requests to www using .htaccess for social engine 4 or any other website.

This will basically create a 301 Permanent redirect.

All you have to do is to append/add to your .htaccess file and the result would be like this: Learn More

Tags: , , , , , , , , , | Posted under SocialEngine | Leave a comment

OpenCart – PHP Basics Part 1 (Variables)

Opencart is an open source shopping cart application that is designed by means of MVC-L (Model-View-Control-Language). PHP is the server side scripting language that the entire cart is made up of. In this series we will discuss some PHP basics and how it relates to Opencart.

Variables Learn More

Tags: , , , , | Posted under OpenCart | Leave a comment