diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-11 06:18:45 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-11 06:18:45 +0000 |
| commit | dae36c2aa4afebb38cc3235b46c6490b2f771aa1 (patch) | |
| tree | 1bed990004815ce28d4104cf7fb39356fcaeaa08 /core/controllers/photo.php | |
| parent | 62bb63a70d35feb4517afa29f83cf2f5d7fd4be9 (diff) | |
Create REST_Controller abstract base class for all REST based resource
controllers. Any controller that wants to act RESTful can extend this
class and implement get/post/put/delete.
Tweak default routes to disallow direct access to the REST controller
and direct access to any REST methods.
Diffstat (limited to 'core/controllers/photo.php')
| -rw-r--r-- | core/controllers/photo.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/controllers/photo.php b/core/controllers/photo.php index 55ab6247..12d86cc4 100644 --- a/core/controllers/photo.php +++ b/core/controllers/photo.php @@ -18,10 +18,11 @@ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ class Photo_Controller extends Item_Controller { + public function get($item) { $template = new View("page.html"); - /** @todo: this needs to be data-driven */ + // @todo: this needs to be data-driven $theme = new Theme("default", $template); $template->set_global('item', $item); |
