Skip to content

Instantly share code, notes, and snippets.

@hailwood
Created November 23, 2015 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hailwood/b786327ab9b154562b3c to your computer and use it in GitHub Desktop.
Save hailwood/b786327ab9b154562b3c to your computer and use it in GitHub Desktop.
<?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