Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 783 Bytes
<?php
/**
* Default settings.
*
* @author Frank Mullenger <frankmullenger@gmail.com>
* @copyright Copyright (c) 2011, Frank Mullenger
* @package swipestripe
* @subpackage admin
*/
//Decorators
Object::add_extension('Payment', 'PaymentDecorator');
Object::add_extension('SiteConfig', 'ShopSettings');
//Extend page controller
Object::add_extension('Page_Controller', 'CartControllerExtension');
//Extend FieldSet
Object::add_extension('FieldSet', 'FieldSetExtension');
//Redirect customers logging in to the account page
Security::set_default_login_dest('account');
//Rules for product links
Director::addRules(50, array(
//'product//$ID' => 'Product_Controller',
'product//$ID/$Action' => 'Product_Controller',
'swipestripe.xml' => 'ShopSettings_Controller'
));
Something went wrong with that request. Please try again.