Created
November 23, 2015 02:48
-
-
Save hailwood/b786327ab9b154562b3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class AccountPage_Controller | |
* | |
* @property AccountPage_Controller $owner | |
*/ | |
class AccountPage_ControllerExtension extends Extension { | |
private static $allowed_actions = ['pastorders']; | |
public function pastorders() { | |
return [ | |
'ShowPastOrders' => true | |
]; | |
} | |
public static function add_to_class($class, $extensionClass, $args = null) { | |
//this does get called, and $class === AccountPage_Controller | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment