g105b/PHP.Gt — Issue #25: Optional PageCode class suffix
Author: g105b
Created: 2012-02-23 15:13:23+00:00
State: open
Labels: Improvement

The _PageCode part of the class name should be made optional. This means that a page called "Test.html" would have a PageCode that looks like this:

class Test extends PageCode {}

which is easier to type and remember, but if there is a page called "Explode.html", you can't have a class called "Explode" because it is a PHP function - so you can then add the _PageCode suffix again to look like this:

class Explode_PageCode extends PageCode {}

Nice.