sammela.com header image 4

Entries Tagged as 'article'

The OpenCart Controller base class

November 15th, 2009 · No Comments · article, news, opencart

All controllers in OpenCart share a common ancestor, the Controller class, located in the DIR_APPLICATION/system/engine/controller.php file. Note that DIR_APPLICATION is the path to your application directory, and is defined in the OpenCart config.php file.
In object oriented terms, the Controller class is called a base class. It contains common methods and data definitions [...]

[Read more →]

Tags:

OpenCart Top Level Controller Architecture

November 14th, 2009 · No Comments · article, news, opencart

An OpenCart top level controller is responsible for orchestrating the complete construction of an OpenCart page.
As an example, the ControllerCheckoutCart controller class is responsible for coordinating the model data and the template view necessary to create a checkout cart page for the client.
Another example is the ControllerCommonHome controller class, which is responsible for the main [...]

[Read more →]

Tags:

How OpenCart Renders Pages

November 14th, 2009 · No Comments · article, news, opencart

The OpenCart Controller class contains a render method that is used to produce HTML pages output by all OpenCart classes that inherit from Controller class.
Here is how it works.
Each time a page is rendered, it is done with one top level controller. The top level controller may contain zero or more child controllers and [...]

[Read more →]

Tags:

Add Backtrace to the WiPeD WordPress Debugger

October 7th, 2009 · 2 Comments · WordPress, article

In a previous article (WiPeD: A Useful WordPress Debugger Plugin), I discussed the WiPeD WordPress Debugger, written by Sterling Camden, which you can read more about on the Chiptips Blog.
I’ve been educating myself about the structure of WordPress, and recently I found it useful to add some backtrace capability to WiPeD.
What is Backtrace?
Backtrace is the [...]

[Read more →]

Tags:

WiPeD: A Useful WordPress Debugger Plugin

October 6th, 2009 · No Comments · WordPress, article

I like the WiPeD (WordPress Printf Debugging) Plugin for four reasons:

It does what I want
It is easy to install
It is easy to use
It is easy to customize

As a bonus, I should say, I talked to the author (Sterling “Chip” Camden)  on the phone today, and he’s very helpful.
Problems with echo
PHP programmers typically use the echo keyword [...]

[Read more →]

Tags:

Make a WordPress Template Sandbox

September 30th, 2009 · No Comments · WordPress, article

Are you learning how do make code modifications in WordPress?
Sometimes you just want to experiment.
But it is messy and risky to make changes in the standard template pages such as index.php, page.php, archive.php, etc. So the best thing to do is make yourself a code sandbox.
A sandbox template should pull in all the infrastructure [...]

[Read more →]

Tags:

The Wordpress Theme Directory Structure

September 29th, 2009 · No Comments · WordPress, article

Wordpress uses a standard directory structure for storing themes.
Starting from your wordpress installation home directtor, all themes are stored in /wp-content/themes.
Each theme is stored in it’s own directory. The two themes that come with a standard WordPress installation are “WordPress Classic” and “WordPress Default”.  Their folders are located relative to the WordPress home directory as [...]

[Read more →]

Tags:

Keep Your Meta Tags Portable

September 28th, 2009 · No Comments · WordPress, article

It was difficult to think of an interesting title for this article. Maybe I should have called it “Save Time and Money — Keep Your Meta Tags Portable”, because eventually, if your Meta Tags are not portable, you’re going to invest time/money moving them.
Problem
The latest WordPress documentation says:
To add meta tags to your site, simply [...]

[Read more →]

Tags:

Sitemaps and Google Webmaster — Like Milk and Cookies

September 27th, 2009 · No Comments · article

This is an article about Sitemaps and Google Webmaster Tools.
This article won’t tell you how to make a Sitemap or how to use Google Webmaster Tools. There are plenty of good articles that explain the mechanics of Sitemaps and Webmaster Tools (see Add a Sitemap to Your Wordpress Site). But sometimes it’s [...]

[Read more →]

Tags:

Add a Sitemap to Your WordPress Site

September 26th, 2009 · No Comments · WordPress, article

In a previous article (Sitemaps and Google Webmaster — Like Milk and Cookies) I explained why it is important to register your Sitemap with Google. This article tells you how to create a Sitemap for your Wordpress site and register it with Google.
Sitemap Plugin Eases the Job
Google accepts Sitemaps in several formats, but it’s [...]

[Read more →]

Tags: