Session management is core of web security. Users should ensure that several practices are in place to protect against session identity theft.
There are a couple of ways that session security can be compromised:
Session Hijacking- When the session ID is stolen and it is the sole authentication of the website.
Session Fixation – ...
Variables in PHP are represented by a dollar sign followed by the name of the variable.
They can contain letters, numbers and underscores, although must not start with a number.
By convention, variables start with lower case and then each word afterwards starts with a capital letter. Note that variables are case sensitive, so the ...
Constants
A constant is an identifier or name given for a simple value. The constants value cannot change during the execution of the script (except for magic constants).
The standard naming convention for constants are always uppercase.
We can define constants a couple of ways. The first is by using the define() function.
define("FOO", ...
This article covers the “Syntax” section in the “Basics” chapter of the Zend PHP 5 Certification.
There are currently four ways constructing PHP code. These are:
<?php
// Some stuff
?>
<?
// Some stuff
?>
<script language='php'>
// Some stuff
Magento has unique functionality that will allow you to configure a package and theme for your store. Magento checks these values configured when firstly running the preDispatch() method.
The key line to look at here is:
The loadArea() method can be seen below.
The load() method will, if no argument has been specified, load the ...
As well as the standard Onepage checkout, the Magento Multishipping checkout is used when customers need to ship their items to multiple addresses.
Multishipping checkout is not available for guests. The registered customers must also have at least one address saved.
Multishipping checkout will be disabled if the shopping cart contains virtual items only.
What makes something either a simple Model or an EAV Model in Magento is its Model Resource.
Whenever you’ve defined a custom model, resource model and collection, more than likely your resource model will extend the Mage_Core_Model_Resource_Db_Abstract class.
An EAV resource model extends the Mage_Eav_Model_Entity_Abstract class, rather than Mage_Core_Model_Resource_Db_Abstract.
Their collections also extend the Mage_Eav_Model_Entity_Collection ...
Refunds in Magento are created in the form of Credit Memos. Magento credit memo creation occurs within the Sales -> Orders section of the admin area and choosing an order to edit.
Similar to the invoice and shipment buttons in this area, the __construct() method of the Mage_Adminhtml_Sales_Order_View class determines whether the button should get ...
If you have followed the grid and form articles, you will have successfully set up an adminhtml grid and form within the admin panel.
This article will look further at adding tabs onto the left hand side and therefore showing and hiding some simple fields when switching between the tabs.
To summarise what you should ...
Magento uses indexes to improve the system’s performance. The indexes can be seen within the admin area under System -> Index Management.
So how do these indexes help improve performance? Let’s take the Flat Category and Flat Product indexes as examples. These indexes become visible in the Index Management section when the Enable Flat ...