2. Create a new presentation object file named admin_attributes.php in the presentation folder, and add the following code to it: // Class that supports attributes admin functionality class AdminAttributes { // Public variables available in smarty template public $mAttributesCount; public $mAttributes; public $mErrorMessage; public $mEditItem; public $mLinkToAttributesAdmin; // Private members private $_mAction; private $_mActionedAttributeId; // Class constructor public function __construct() { // Parse the list with posted variables foreach ($_POST as $key => $value) // If a submit button was clicked .