SkyPHP/skyphp — pull request #34 by stanistan (2012-04-09 17:55:07+00:00)
Title: Core updates

### Models

- class much better documented (inline)
- separated core methods from relying on static vs. instantiated state.

```php
getToken();
$token = $artist->getToken($artist->artist_id);
$token = $artist->getToken($artist->getID());

# falls back to $model->getID(); if there is no identifier or model
# an error is thrown
```

### Routing

- slimmed down `sky.php`
- added `page::inherit()` functionality
- added `PageRouter`
- added `session` and `env-ini` hooks
- pages are now included inside the page object so one can access the object using `$this`, which mitigates the issue of mistakenly overriding the `$p` variable (still present to not break backwards compatibility).

### Still todo:

- add `rooturi` option
- clean up `functions.inc.php`