* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 1.4 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class AddressesControllerCore extends FrontController { public function __construct() { $this->auth = true; $this->php_self = 'addresses.php'; $this->authRedirection = 'addresses.php'; $this->ssl = true; parent::__construct(); } public function setMedia() { parent::setMedia(); Tools::addCSS(_THEME_CSS_DIR_.'addresses.css'); } public function process() { parent::process(); $customer = new Customer((int)(self::$cookie->id_customer)); if (!Validate::isLoadedObject($customer)) die(Tools::displayError('Customer not found')); self::$smarty->assign('addresses', $customer->getAddresses((int)(self::$cookie->id_lang))); } public function displayContent() { parent::displayContent(); self::$smarty->display(_PS_THEME_DIR_.'addresses.tpl'); } }